菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
177
0

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

原创
05/13 14:22
阅读数 23561

需求:过滤下面这个网页里共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
[root@steven ~]# grep  -E  "共[0-9]{2}行"  check9.3 |wc -l
32

打开SecureCRT软件 -> Options -> session options -> X/Y/Zmodem 下可以设置上传和下载的目录; 然后在用SecureCRT登陆linux终端的时候:
# sz filename (发送文件到客户端,zmodem接收可以自行启动)
# rz (从客户端上传文件到linux服务端)
[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里设置发送和接受文件夹 lrzsz
yum install lrzsz

 

直接拖进去XShell
 
f
f
f
f
f
 
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>

发表评论

0/200
177 点赞
0 评论
收藏