存档

‘sed&swk&shell’ 分类的存档

sed1line_zh-CN

2010年2月23日 稀饭 没有评论
?Download shell.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
-------------------------------------------------------------------------
SED单行脚本快速参考(Unix 流编辑器)                       2005年12月29日
 
英文标题:USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)
原标题:HANDY ONE-LINERS FOR SED (Unix stream editor)
 
整理:Eric Pement  - 电邮:pemente[at]northpark[dot]edu         版本5.5
译者:Joe Hong     - 电邮:hq00e[at]126[dot]com
 
在以下地址可找到本文档的最新(英文)版本:
   <a href="http://sed.sourceforge.net/sed1line.txt">http://sed.sourceforge.net/sed1line.txt</a> 
   <a href="http://www.pement.org/sed/sed1line.txt">http://www.pement.org/sed/sed1line.txt</a> 
 
其他语言版本:
  中文          - <a href="http://sed.sourceforge.net/sed1line_zh-CN.html">http://sed.sourceforge.net/sed1line_zh-CN.html</a> 
  捷克语        - <a href="http://sed.sourceforge.net/sed1line_cz.html">http://sed.sourceforge.net/sed1line_cz.html</a> 
  荷语          - <a href="http://sed.sourceforge.net/sed1line_nl.html">http://sed.sourceforge.net/sed1line_nl.html</a> 
  法语          - <a href="http://sed.sourceforge.net/sed1line_fr.html">http://sed.sourceforge.net/sed1line_fr.html</a> 
  德语          - <a href="http://sed.sourceforge.net/sed1line_de.html">http://sed.sourceforge.net/sed1line_de.html</a> 
<!--
  意大利语      - <a href="http://sed.sourceforge.net/sed1line_it.html">http://sed.sourceforge.net/sed1line_it.html
--> 
  葡语          - <a href="http://sed.sourceforge.net/sed1line_pt-BR.html">http://sed.sourceforge.net/sed1line_pt-BR.html</a> 
<!--
  西班牙语      - <a href="http://sed.sourceforge.net/sed1line_es.html">http://sed.sourceforge.net/sed1line_es.html
--> 
  <a href="http://blog.thematice.com/html/y2010/02/23/1035/sed1line_zh-cn.html#more-1035" class="more-link">阅读全文...</a>

鞋衫各式名品专卖

收藏与分享

使用awk进行大小写转换

2010年1月27日 稀饭 没有评论

echo abc|tr a-z A-Z
文件大小写转换
awk ‘{print tolower($1)}’ up.txt
awk ‘{print toupper($1)}’ up.txt

收藏与分享

Unix/Linux shell程序设计-<控制结构>-case语句

2009年9月26日 稀饭 没有评论

case语句 :它能够把变量的内容与多个模板进行匹配,再根据成功匹配的模板去决定应该执行哪部分代码。
使用格式:
case 匹配母板 in
模板1 [ | 模板2 ] … ) 语句组 ;;
模板3 [ | 模板4 ] … ) 语句组 ;;
esac
阅读全文…

简单生活。简单运动

收藏与分享

SED单行脚本快速参考

2009年5月25日 稀饭 没有评论

————————————————————————-
SED单行脚本快速参考(Unix 流编辑器) 2005年12月29日
原文链接 - http://sed.sourceforge.net/sed1line_zh-CN.html

英文标题:USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor)
原标题:HANDY ONE-LINERS FOR SED (Unix stream editor)

整理:Eric Pement – 电邮:pemente[at]northpark[dot]edu 版本5.5
译者:Joe Hong – 电邮:hq00e[at]126[dot]com

在以下地址可找到本文档的最新(英文)版本:
http://sed.sourceforge.net/sed1line.txt
http://www.pement.org/sed/sed1line.txt
阅读全文…

收藏与分享