$0,$1,$2 and set - in shell ,awk ,sed,function ,perl
来源:互联网 发布:淘宝网宋大师旗舰店 编辑:程序博客网 时间:2024/04/29 10:47
set – a b c …
tells ksh to assign $1 = a, $2 = b, $3 = c … as if the script had been called: script a b c …
Then the script can use normal command line parsing tools like getopts.
IFS is the input field separator. By default this is set to white space (space, tab, or newline). By adding ‘%’, ksh will replace % with a space when a variable is echoed.
set –A arrayName a b c … creates an array and assigns members arrayName[0]=a, arrayName[1]=b, arrayName[2]=c…
specail symbol :
it represent parameter all , parameter 1,2,3 ....for shell ,awk ,function
for awk, $1 $2 , are also used in -F
for regular match
sed use \1
perl usr $(1)
- $0,$1,$2 and set - in shell ,awk ,sed,function ,perl
- shell+sed+awk和perl和python的区别
- Perl、C、sed、awk、shell scripting 谁有好点的电子书
- shell+sed+awk和perl和python的区别
- shell+sed+awk和perl和python的区别
- shell+sed+awk和perl和python的区别
- Linux shell sed awk
- shell,awk,sed
- linux shell awk sed
- sed and awk
- SED AND AWK
- Sed and AWK
- sed and awk
- sed and awk process xml file in multi line
- grep/sed/awk与Perl比较的更新(2)
- grep/sed/awk与Perl比较的更新(1)
- linux shell必知必会sed、awk
- sed and awk学习笔记
- 使用PJSIP库,获得当前时间
- flex传递参数-------TitleWindow向主页面传递参数(2)
- Oracle 删除用户和表空间
- powerpoint 2007 中怎么插入flash动画
- error LNK2019:unresolved external symbol的解决方法
- $0,$1,$2 and set - in shell ,awk ,sed,function ,perl
- python 系统学习笔记(六)---元组
- android 输入法模块,根据当前输入法,改变可以切换的输入法数组。
- 如何在网页中嵌入WMV格式或RM视频文件
- Qt中的Q_OBJECT宏必须要加上
- Linux C编程--string.h函数解析
- 安装axel
- (1)简单工厂模式
- 搞笑对话