2010年4月29日 星期四

Command

1.find /tmp/ -type f -name "*.txt"

---------------------------------------------

2. 若要附加一段文字到某個檔案, 可用
echo "XXX" >> file

此處要注意是 >> 代表附加


------------------------------------------------
xargs 將前方的輸出變成 argument
1. [Andy@localhost test2]$ ls | xargs -i mv {} ../test1/

沒有留言:

張貼留言