日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

需求:过滤下面这个网页里共723行 校对中里 行数为两位数的 行 并设置sz和rz在Windows和Linux之间发送和接收文件不用搭FTP...

發(fā)布時(shí)間:2025/4/9 linux 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 需求:过滤下面这个网页里共723行 校对中里 行数为两位数的 行 并设置sz和rz在Windows和Linux之间发送和接收文件不用搭FTP... 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

需求:過(guò)濾下面這個(gè)網(wǎng)頁(yè)里共723行 校對(duì)中里 行數(shù)為兩位數(shù)的 行 并設(shè)置sz和rz在Windows和Linux之間發(fā)送和接收文件不用搭FTP

?


需求:過(guò)濾下面這個(gè)網(wǎng)頁(yè)里共723行 校對(duì)中里 行數(shù)為兩位數(shù)的 行 因?yàn)榉g當(dāng)然要選擇行數(shù)少的來(lái)翻譯,翻譯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

打開(kāi)SecureCRT軟件 -> Options -> session options -> X/Y/Zmodem 下可以設(shè)置上傳和下載的目錄; 然后在用SecureCRT登陸linux終端的時(shí)候:
# sz filename (發(fā)送文件到客戶端,zmodem接收可以自行啟動(dòng))
# 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

?

直接拖進(jìn)去XShell f f f f f f
正則
.:任意一個(gè)字符
*:結(jié)合星號(hào)前面的符號(hào),a* 0個(gè)或多個(gè)a
+:grep不可以直接,加大E 或者egrep 或者脫義符號(hào) grep 'a\+' 一個(gè)或多個(gè)a
?:0個(gè)或多個(gè)a
.*:貪婪匹配
():匹配,然后替換
(oo){2,4}: 出現(xiàn)2到4次oo
[^:]+:非冒號(hào)開(kāi)頭的一個(gè)或多個(gè)
([^:]+)(:.*:)([^:]+) 匹配多段 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>待校對(duì)</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>待校對(duì)</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>待校對(duì)</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>待校對(duì)</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>校對(duì)中</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>待校對(duì)</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>待校對(duì)</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>待校對(duì)</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 錯(cuò)誤代碼</strong></a>??? 共89行?? <strong>待校對(duì)</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.版本說(shuō)明</strong></a>??? 共91行?? <strong>待校對(duì)</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>待校對(duì)</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>待校對(duì)</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>待校對(duì)</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>待校對(duì)</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>待校對(duì)</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>待校對(duì)</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>待校對(duì)</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>待校對(duì)</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>待校對(duì)</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.源代碼庫(kù)</strong></a>??? 共97行?? <strong>待校對(duì)</strong><br>

轉(zhuǎn)載于:https://www.cnblogs.com/MYSQLZOUQI/p/4779407.html

總結(jié)

以上是生活随笔為你收集整理的需求:过滤下面这个网页里共723行 校对中里 行数为两位数的 行 并设置sz和rz在Windows和Linux之间发送和接收文件不用搭FTP...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。