zlingh

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 10 11 12 13 14

2014年7月31日

摘要: 传统if 从句子——以条件表达式作为 if条件if [ 条件表达式 ]thencommandcommandcommandelsecommandcommandfi 条件表达式文件表达式if [ -f file ] 如果文件存在if [ -d ... ] 如果目录存在if [ -s file ] 如果文... 阅读全文
posted @ 2014-07-31 00:33 zlingh 阅读(252) 评论(0) 推荐(0) 编辑

2014年7月30日

摘要: 1. 取出两个文件的并集(重复的行只保留一份)2. 取出两个文件的交集(只留下同时存在于两个文件中的文件)3. 删除交集,留下其他的行1. cat file1 file2 | sort | uniq2. cat file1 file2 | sort | uniq -d3. cat file1 fil... 阅读全文
posted @ 2014-07-30 21:14 zlingh 阅读(1029) 评论(1) 推荐(0) 编辑

2014年7月25日

摘要: set nocompatibleset autowriteset autoreadset nobackupset noswapfile" --- syntax and indent ---syntax onset tabstop=4set softtabstop=4set shiftwidth=4s... 阅读全文
posted @ 2014-07-25 16:44 zlingh 阅读(476) 评论(0) 推荐(0) 编辑

2014年7月23日

摘要: 下载单个文件,默认将输出打印到标准输出中(STDOUT)中curl http://www.centos.org通过-o/-O选项保存下载的文件到指定的文件中:-o:将文件保存为命令行中指定的文件名的文件中-O:使用URL中默认的文件名保存文件到本地1 # 将文件下载到本地并命名为mygettext.... 阅读全文
posted @ 2014-07-23 21:51 zlingh 阅读(333) 评论(0) 推荐(0) 编辑

上一页 1 ··· 10 11 12 13 14