shell record
ls /tmp |grep 'sess_'|xargs -i rm /tmp/{}
ls *.php|xargs -i sed -i 's/confirm("修改?")/confirm("确认修改吗?")/g' {}
[ctags]
sudo ctags -R --c-kinds=+p --language-force=c --fields=+iaS --extra=+q /usr/include/
删除目录下.svn文件夹
find ./ -type d -name '.svn' -exec rm -rf '{}' ';'
option describe:
-exec command;
[awk]
echo "blah foo123bar blah"| awk '{match($2,"[a-z]+[0-9]+",a)}END{print a[0]}'
[for]
key value
for i in"${!array[@]}"do echo "key : $i" echo "value: ${array[$i]}"done