To convert flac to m4a by using ffmpeg on Mac OS X
first, download ffmpeg (http://www.ffmpegmac.net/) for mac os x binary. you could use the following command to convert : # ffmpeg -i xxxxx.flac …
first, download ffmpeg (http://www.ffmpegmac.net/) for mac os x binary. you could use the following command to convert : # ffmpeg -i xxxxx.flac …
# lsof|grep lustre|awk ‘{print $2}’|xargs kill
sleep $[ ( $RANDOM % 60 ) + 1 ]s
1 for i in ls *.jpg; do convert -verbose "$i" ${i%\.*}.pdf; donefor i in ls *.jpg; do convert -verbose "$i" ${i%\.*}.pdf; done
例如我要將桌面內所有 .wma 檔案遞迴移除. 可以用下列指令 : find ~/Desktop/ -name *.wma -exec rm -v {} \;
記錄一下這幾個連結 http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html http://ppewww.physics.gla.ac.uk/~chrisc/SUPA/lecturenotes/bash/bash.html 常有機會寫 bash 但是bash還是不熟悉.
[root@cluster1 ~]$ top -b -n 1 |sed -n -e “8,`cat /proc/cpuinfo | grep processor | tail -n 1 | awk ‘{print $3 …
[root@cluster1 ~]$ cat /proc/cpuinfo | grep processor | tail -n 1 | awk ‘{print $3 + 1}’
ssh bc$((` hostname -s| awk -F “” ‘{ print $3$4 }’` + 14))
grep “Failed password for invalid user” /var/log/secure | awk ‘{print substr($13,8)}’ | awk ‘{count[$1]++} END { for( i in count ) { …