需求:过滤下面这个网页里共723行 校对中里 行数为两位数的 行 并设置sz和rz在Windows和Linux之间发送和接收文件不用搭FTP
需求:过滤下面这个网页里共723行 校对中里 行数为两位数的 行 并设置sz和rz在Windows和Linux之间发送和接收文件不用搭FTP
grep -E "共[0-9]{2}行" check9.3
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
yum install lrzsz






.:任意一个字符
*:结合星号前面的符号,a* 0个或多个a
+:grep不可以直接,加大E 或者egrep 或者脱义符号 grep 'a\+' 一个或多个a
?:0个或多个a
.*:贪婪匹配
():匹配,然后替换
(oo){2,4}: 出现2到4次oo
[^:]+:非冒号开头的一个或多个
([^:]+)(:.*:)([^:]+) 匹配多段
<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>
需求:过滤下面这个网页里共723行 校对中里 行数为两位数的 行 并设置sz和rz在Windows和Linux之间发送和接收文件不用搭FTP的更多相关文章
- linux CentOS 安装rz和sz命令 lrzsz 实现windows和linux之间的文件上传 下载
https://blog.nbhao.org/1902.html https://bbs.csdn.net/topics/391989523 https://www.cnblogs.com/zhoul ...
- windows和linux之间上传下载文件的两种方法
一 用rz和sz http://blog.csdn.net/register_man/article/details/53860774 http://www.jb51.net/article/7 ...
- windows与linux之间文件的传输方式总结(转)
当然,windows与linux之间文件的传输的两种方式有很多,这里就仅仅列出工作中遇到的,作为笔记: 方法一:安装SSH Secure Shell Client客户端 安装即可登录直接拖拉到linu ...
- Windows Linux 之间rsync同步CODE文件
Windows Linux 之间rsync同步CODE文件 一.环境Windows:OS:Microsoft Windows Web Server 2008 SP1IP:192.168.88.197 ...
- windows与linux之间文件的传输
这边记录一下如何在windows与linux之间进行文件的传输,下面是具体的网址. 原文地址::http://blog.csdn.net/shufac/article/details/51966276 ...
- 如何使用xftp工具在Windows与Linux之间传输文件
如何使用xftp工具在Windows与Linux之间传输文件 整理者:vashon 声明:感谢开源社区 xftp工具是一款SFTP,FTP文件传输软件,可在Windows pc与Unix/Linux之 ...
- 如何实现windows和linux之间的文件传输
2010-04-25 18:10 如何实现windows和linux之间的文件传输 如果想从windows中传送大量文件到Linux中,想必会难倒部分Linux初学者,尤其是文件很大时.我曾试过在li ...
- 使用pscp命令在Windows与linux之间拷贝文件
在Linux环境下做开发时,我们可能会在windows下远程控制Linux系统,本文介绍如何使用putty的pscp.exe在Windows和 Linux(本文使用fedora)之间copy文件. 工 ...
- 如何利用Xshell在windows与linux之间互传文件
如何利用Xshell在windows与linux之间互传文件 第一步: 安装Xshell. 第二步: 打开Xshell,若出现默认的对话框,则选择关闭,因为下面将演示如何将本地文件传输至远程linux ...
随机推荐
- [转]lsof详解
lsof是一个功能强大的诊断工具,它可以通过进程与打开的文件进行联系,可以列出一个进程打开的所有文件信息. 1 寻找与打开的文件相关联的进程通过指定文件,可以发现正在使用这个文件的进程# lsof / ...
- Linux下安装subversion1.6.5和apache2
以下安装是在RHEL5.5默认安装的情况下,以root身份进行安装!这个实验我安装了n次,最后总是不成功,因为涉及到略多的软件和配置.下面是安装步骤和配置,自己记下来.希望给下次配置的时候不要像以前那 ...
- Ubuntu 14.04 Server i386 安装 Oracle11g_11.2.0.3 RAC
文档地址:doc 文档地址:doc
- 【转】VS2008快速将代码中字符串改为_T(“”)风格的方法
用VC在修改一些老程序的时候,经常面临“UNICODE化”的工作.就是将一些传统C语言风格的字符串,如“string”,改为既能够通过多字节编码工程编译,又能通过UNICODE工程编译的代码,即形如_ ...
- SqlBulkCopy类进行大数据(10000万条以上)插入测试
好多天没写博客了,刚刚毕业一个多月,在IT的路上真是迷茫啊! 关于上一篇博客中提到的,在进行批量数据插入数据库的时候可以通过给存储过程传递一个类型为Table的参数进行相关操作,在这个过程中本人没有进 ...
- 京东云擎提供了免费的wordpress一键安装功能了
1. 京东云擎(http://jae.jd.com)提供了免费的个人博客WordPress一键安装功能了,如下图,给开发者分享福利! 免费的应用,提供了源码,提供了数据库: 我之前把文章发到首页,遭到 ...
- scala的基础部分
最近接触到spark,spark又是scala编写的,所以需要学习一下scala. scala是面向对象的,一切皆为对象, 数值,函数都是对象. println("Welcome to th ...
- Android储存
Android储存一共5种方法 一: 手机内置,外部储存 1.获取本地存储 (Android的读写文件及权限设置) getFilesDir() data/data/包名/File getCache ...
- PHP自带方法验证邮箱、URL、IP是否合法
PHP验证邮箱.URL.IP是否合法 以前用PHP验证邮箱.URL.IP是否合法都是通过自己写正则来实现,但是有时候脑子发昏,可能会写出一个不是完全正确的正则,导致验证出错,今天发现原来PHP本身自带 ...
- AndroidWear开发之下载SDK[Android W/Android L]
Android L Developer Preview SDK发布了,但是天朝还是无法更新到.打开SDK Manager依旧一成不变,这时候就需要利器了. 第一步: 打开Goagent,不要说不知道什 ...