shell
fdsafwagdagadg6576
这个作者很懒,什么都没留下…
展开
-
perl和shell的语法不同之处
catalogue1 变量定义2 括号3 数值计算4 数值和string比较5 数组6 正则,模式识别=================将shell和perl中的很多文章都可以归并到这里,变成一篇系统性的长文eg:eq for shell is num compare, eq for perl is string compareperl: elsif (else if 比较特殊), shell:e...原创 2014-07-06 12:37:46 · 1509 阅读 · 0 评论 -
here document
saveload${RT0LABid}${INITIALS}${RT0num} ${FAFnum}${LoadName}${STATUS}yFINit is here documents the command "saveload" takes all following lines as arguments. often ,here documents i原创 2013-12-04 15:58:36 · 531 阅读 · 0 评论 -
模式识别
1,${varible##*string} --- 从左向右截取最后一个string后的字符串${varible#*string} --- 从左向右截取第一个string后的字符串${varible%%string*} --- 从右向左截取最后一个string后的字符串${varible%string*} --- 从右向左截取第一个转载 2013-04-09 11:17:36 · 655 阅读 · 0 评论 -
个人总结-常用shell命令:rsh-crontab-email-ed-tty--ymatch$
tips:1 : rshrsh 居然可以多个命令在一条语句中实现。只需要用;号将其分开。timedrun -${G_MAX_TIMEOUT} /bin/rsh -l $r_userID $r_Host ". /opt/wsde/1/bin/setenv -S $NMAKE_SYSTEM -g $GENERIC -l $LOADID -F -E -b $BLDTYPE -r $r_RO原创 2013-05-19 17:31:06 · 778 阅读 · 0 评论 -
shell总结
${varible##*string} --- 从左向右截取最后一个string后的字符串${varible#*string} --- 从左向右截取第一个string后的字符串${varible%%string*} --- 从右向左截取最后一个string后的字符串${varible%string*} --- 从右向左截取第一个stri原创 2014-07-06 12:34:03 · 534 阅读 · 0 评论 -
shell example
1 example 1:remote visitor servers==$ cat rsh.shpool=$1echo $poolwhile read linedo # Skip comments if [ "${line%%\#*}" = "" ] then continue原创 2013-04-06 20:24:27 · 622 阅读 · 0 评论 -
shell/per/tcl/function usage conclude
shell function exitfile {#transfer parameter (attention : it is not in function name ,like exitfile(a); itdidn't permit have"()" inshell function.sometimes it is inawk/nawk/xwakfunction whic原创 2013-03-05 14:21:17 · 538 阅读 · 0 评论 -
redirect:2>&1使用&redirect and output and return value are different
2>&1使用http://blog.sina.com.cn/s/blog_6e07f1eb01016hic.html(2013-03-19 01:33:38)转载▼ 分类: 学习Linux2>&1使用一 相关知识1)默认地,标准的输入为键盘,但是也可以来自文件或管道(pipe |)。2)默认地,标准的输出为终端(t原创 2013-09-20 11:02:12 · 604 阅读 · 0 评论