標籤:
需求:過濾下面這個網頁裡共723行 校對中裡 行數為兩位元的 行 並設定sz和rz在Windows和Linux之間發送和接收檔案不用搭FTP
需求:過濾下面這個網頁裡共723行 校對中裡 行數為兩位元的 行因為翻譯當然要選擇行數少的來翻譯,翻譯PG文檔 https://github.com/postgres-cn/pgdoc-cn/wiki/check9.3
grep -E "共[0-9]{2}行" check9.3[[email protected] ~]# grep -E "共[0-9]{2}行" check9.3 |wc -l
32
開啟SecureCRT軟體 -> Options -> session options -> X/Y/Zmodem 下可以設定上傳和下載的目錄; 然後在用SecureCRT登陸linux終端的時候:
# sz filename (傳送檔案到用戶端,zmodem接收可以自行啟動)
# rz (從用戶端上傳檔案到linux服務端)
[[email protected] ~]# ll pgsqldoc.txt
-rw-r--r-- 1 root root 3 9月 2 00:21 pgsqldoc.txt
[[email protected] ~]# sz pgsqldoc.txt[[email protected] ~]# 0 在XShell裡設定發送和接受檔案夾 lrzsz
yum install lrzsz
直接拖進去XShell fffff f
正則
.:任意一個字元
*:結合星號前面的符號,a* 0個或多個a
+:grep不可以直接,加大E 或者egrep 或者脫義符號 grep ‘a\+‘ 一個或多個a
?:0個或多個a
.*:貪婪匹配
():匹配,然後替換
(oo){2,4}: 出現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>
需求:過濾下面這個網頁裡共723行 校對中裡 行數為兩位元的 行 並設定sz和rz在Windows和Linux之間發送和接收檔案不用搭FTP