
shell
westwin
这个作者很懒,什么都没留下…
展开
-
A Shell Script to do shell scripting faster
http://unix-school.blogspot.in/2011/08/shell-script-to-do-shell-scripting.html $ cat workon#!/usr/bin/bashif [ ! -f $1 ]; then echo "#!/usr/bin/bash" > $1fiwhile [ 1 ];do ...原创 2012-05-08 23:44:51 · 146 阅读 · 0 评论 -
linux command: dash as a operand
for exampe: mv -- -a.txt The -- delimit the option list. Later arguments, if any, are treated a operands even if they begin with - or --. This applies to all commands such as rm, cp, mv, ls, ln a...原创 2011-11-09 13:54:23 · 91 阅读 · 0 评论 -
find class in which jar
#!/bin/ksh#this script is used to find class in which jar fileif [ "$#" -le "1" ]; then echo "Usage: $0 class_name jar_path_1 [jar_path2]...[jar_pathn]" exit 1fi#class to be foundCL...2012-02-28 21:57:14 · 171 阅读 · 0 评论 -
ftp get
#!/bin/kshif [ $# -lt 3 ]then echo Usage: $0 hostname directory filename echo Note: make sure the machine,login,password has existed in ${HOME}/.netrc. For example: echo ech...2012-02-28 22:01:45 · 112 阅读 · 0 评论 -
ftp put
#!/bin/kshif [ $# -lt 3 ]then echo Usage: $0 hostname directory filename echo Note: make sure the machine,login,password has been existed in ${HOME}/.netrc. For example: echo ec...2012-02-28 22:02:52 · 145 阅读 · 0 评论 -
bash two tips:tab completion igore-case and auto-correct mistyped dir name
in .bashrc #tab auto-completion ignore -casebind 'set completion-ignore-case on'#automatically correct mistyped directory names on cdshopt -s cdspell原创 2014-10-08 14:42:30 · 188 阅读 · 0 评论