需求:过滤下面这个网页里共723行 校对中里 行数为两位数的 行 并设置sz和rz在Windows和Linux之间发送和接收文件不用搭FTP...
生活随笔
收集整理的這篇文章主要介紹了
需求:过滤下面这个网页里共723行 校对中里 行数为两位数的 行 并设置sz和rz在Windows和Linux之间发送和接收文件不用搭FTP...
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
需求:過濾下面這個網(wǎng)頁里共723行 校對中里 行數(shù)為兩位數(shù)的 行 并設(shè)置sz和rz在Windows和Linux之間發(fā)送和接收文件不用搭FTP
?
需求:過濾下面這個網(wǎng)頁里共723行 校對中里 行數(shù)為兩位數(shù)的 行 因為翻譯當(dāng)然要選擇行數(shù)少的來翻譯,翻譯PG文檔 https://github.com/postgres-cn/pgdoc-cn/wiki/check9.3
grep? -E? "共[0-9]{2}行"? check9.3 [root@steven ~]# grep? -E? "共[0-9]{2}行"? check9.3 |wc -l
32
打開SecureCRT軟件 -> Options -> session options -> X/Y/Zmodem 下可以設(shè)置上傳和下載的目錄; 然后在用SecureCRT登陸linux終端的時候:
# sz filename (發(fā)送文件到客戶端,zmodem接收可以自行啟動)
# rz (從客戶端上傳文件到linux服務(wù)端)
[root@steven ~]# ll pgsqldoc.txt
-rw-r--r-- 1 root root 3 9月?? 2 00:21 pgsqldoc.txt
[root@steven ~]# sz pgsqldoc.txt [root@steven ~]# 0 在XShell里設(shè)置發(fā)送和接受文件夾 lrzsz yum install lrzsz
?
直接拖進去XShell f f f f f f正則
.:任意一個字符
*:結(jié)合星號前面的符號,a* 0個或多個a
+:grep不可以直接,加大E 或者egrep 或者脫義符號 grep 'a\+' 一個或多個a
?:0個或多個a
.*:貪婪匹配
():匹配,然后替換
(oo){2,4}: 出現(xiàn)2到4次oo
[^:]+:非冒號開頭的一個或多個
([^:]+)(:.*:)([^:]+) 匹配多段 sed -r 's/([^:]+)(:.*:)([^:]+) /\3\2\1/' /etc/passwd <p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/legal.sgml"><em>legal.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/LEGALNOTICE.html"><strong>Legal Notice</strong></a>??? 共48行?? <strong>完成</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/notation.sgml"><em>notation.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/notation.html"><strong>格式約定</strong></a>??? 共31行?? <strong>完成</strong><br>
<p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/info.sgml"><em>info.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/resources.html"><strong>更多信息</strong></a>??? 共69行?? <strong>完成</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/alter_language.sgml"><em>ref/alter_language.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-alterlanguage.html"><strong>ALTER LANGUAGE</strong></a>??? 共91行?? <strong>完成</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/alter_large_object.sgml"><em>ref/alter_large_object.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-alterlargeobject.html"><strong>ALTER LARGE OBJECT</strong></a>??? 共80行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/alter_tsparser.sgml"><em>ref/alter_tsparser.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-altertsparser.html"><strong>ALTER TEXT SEARCH PARSER</strong></a>??? 共93行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/alter_tstemplate.sgml"><em>ref/alter_tstemplate.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-altertstemplate.html"><strong>ALTER TEXT SEARCH TEMPLATE</strong></a>??? 共93行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/alter_user.sgml"><em>ref/alter_user.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-alteruser.html"><strong>ALTER USER</strong></a>??? 共74行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/checkpoint.sgml"><em>ref/checkpoint.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-checkpoint.html"><strong>CHECKPOINT</strong></a>??? 共64行?? <strong>完成</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/commit.sgml"><em>ref/commit.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-commit.html"><strong>COMMIT</strong></a>??? 共96行?? <strong>完成</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/create_group.sgml"><em>ref/create_group.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-creategroup.html"><strong>CREATE GROUP</strong></a>??? 共70行?? <strong>校對中</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/create_user.sgml"><em>ref/create_user.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-createuser.html"><strong>CREATE USER</strong></a>??? 共78行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/deallocate.sgml"><em>ref/deallocate.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-deallocate.html"><strong>DEALLOCATE</strong></a>??? 共98行?? <strong>完成</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/drop_group.sgml"><em>ref/drop_group.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-dropgroup.html"><strong>DROP GROUP</strong></a>??? 共53行?? <strong>完成</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/drop_user.sgml"><em>ref/drop_user.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-dropuser.html"><strong>DROP USER</strong></a>??? 共55行?? <strong>完成</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/load.sgml"><em>ref/load.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-load.html"><strong>LOAD</strong></a>??? 共79行?? <strong>完成</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/rollback.sgml"><em>ref/rollback.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-rollback.html"><strong>ROLLBACK</strong></a>??? 共96行?? <strong>完成</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/start_transaction.sgml"><em>ref/start_transaction.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sql-start-transaction.html"><strong>START TRANSACTION</strong></a>??? 共97行?? <strong>完成</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/pg_controldata.sgml"><em>ref/pg_controldata.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/app-pgcontroldata.html"><strong>pg_controldata</strong></a>??? 共67行?? <strong>待校對</strong><br>
<p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/ref/postmaster.sgml"><em>ref/postmaster.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/app-postmaster.html"><strong>postmaster</strong></a>??? 共44行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/errcodes.sgml"><em>errcodes.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/errcodes-appendix.html"><strong>A.PostgreSQL 錯誤代碼</strong></a>??? 共89行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/release.sgml"><em>release.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/release.html"><strong>E.版本說明</strong></a>??? 共91行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/adminpack.sgml"><em>adminpack.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/adminpack.html"><strong>F.1.adminpack</strong></a>??? 共40行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/auth-delay.sgml"><em>auth-delay.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/auth-delay.html"><strong>F.2.auth_delay</strong></a>??? 共65行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/btree-gin.sgml"><em>btree-gin.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/btree-gin.html"><strong>F.4.btree_gin</strong></a>??? 共58行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/chkpass.sgml"><em>chkpass.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/chkpass.html"><strong>F.6.chkpass</strong></a>??? 共95行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/dict-int.sgml"><em>dict-int.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/dict-int.html"><strong>F.10.dict_int</strong></a>??? 共85行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/dummy-seclabel.sgml"><em>dummy-seclabel.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/dummy-seclabel.html"><strong>F.12.dummy_seclabel</strong></a>??? 共74行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/passwordcheck.sgml"><em>passwordcheck.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/passwordcheck.html"><strong>F.23.passwordcheck</strong></a>??? 共62行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/tcn.sgml"><em>tcn.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/tcn.html"><strong>F.37.tcn</strong></a>??? 共71行?? <strong>待校對</strong><br>
<li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/test-parser.sgml"><em>test-parser.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/test-parser.html"><strong>F.38.test_parser</strong></a>??? 共90行?? <strong>待校對</strong><br> <li><p><a href="https://github.com/postgres-cn/pgdoc-cn/edit/master/postgresql/doc/src/sgml/sourcerepo.sgml"><em>sourcerepo.sgml</em></a>??? <a href="http://postgres.cn/docs/9.3/sourcerepo.html"><strong>I.源代碼庫</strong></a>??? 共97行?? <strong>待校對</strong><br>
轉(zhuǎn)載于:https://www.cnblogs.com/MYSQLZOUQI/p/4779407.html
總結(jié)
以上是生活随笔為你收集整理的需求:过滤下面这个网页里共723行 校对中里 行数为两位数的 行 并设置sz和rz在Windows和Linux之间发送和接收文件不用搭FTP...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android百度地图定位
- 下一篇: 9月——都已经9月了还不好好刷题?。。