作爲Linux中的新手,我有以下問題。 我有文件列表(這次是由svn狀態產生的),我想創建一個腳本來循環它們,並用4個空格替換標籤。如何在svn狀態下循環Linux中的文件
所以我想從
....
D HTML/templates/t_bla.tpl
M HTML/templates/t_list_markt.tpl
M HTML/templates/t_vip.tpl
M HTML/templates/upsell.tpl
M HTML/templates/t_warranty.tpl
M HTML/templates/top.tpl
A + HTML/templates/t_r1.tpl
....
喜歡的東西
for i in <files>; expand -t4;do cp $i /tmp/x;expand -t4 /tmp/x > $i;done;
但我不知道該怎麼做......
也謝謝你的回答,我會把它和丹的結合起來。 – eddy147 2008-11-14 10:11:07