Month: 二月, 2007

删除某个目录下所有文件的第一行

7 二月, 2007 (10:48) | linux

for f in *
do
sed -e ‘1d’ -i “$f”
done

原文来自linuxsir bbs论坛,ps 有时间还是要好好看看shell。

...