请教各位大虾<如何批量修改文件内容>

请教各位大虾<如何批量修改文件内容>

比如我有N个文件在hello文件夹里。所有的文件的开头都有"hello every one!。。。。。"结尾也有一些以hello every one!结尾的话,这N个文件只有中间一部分内容不同。有什么办法只留下中间这不同的内容,而开头和结尾的这部分都从文件删除。。。
哪位大虾说下怎么做?或都用哪几个命令可以完成,我自己去学习一下。      
看样子你该学学 sed 了      
it is no necessary to kill chicken with the knife which for killing ox.
复制内容到剪贴板
代码:
root@domain:~/test# for i in {0..9}; do
> touch "hello everyone $i"
> done
root@domain:~/test# ls -c1
hello everyone 0
hello everyone 1
hello everyone 2
hello everyone 3
hello everyone 4
hello everyone 5
hello everyone 6
hello everyone 7
hello everyone 8
hello everyone 9
root@domain:~/test# rename "hello everyone " "" *
root@domain:~/test# ls -c1
0
1
2
3
4
5
6
7
8
9
root@domain:~/test#
      
[QUOTE=ServerOnly]
复制内容到剪贴板
代码:
root@domain:~/test# for i in {0..9}; do
> touch "hello everyone $i"
> done
root@domain:~/test# ls -c1
hello everyone 0
hello everyone 1
hello everyone 2
hello everyone 3
hello everyone 4
hello everyone 5
hello everyone 6
hello everyone 7
hello everyone 8
hello everyone 9
root@domain:~/test# rename "hello everyone " "" *
root@domain:~/test# ls -c1
0
1
2
3
4
5
6
7
8
9
root@domain:~/test#
[/QUOTE]
SO 又看错了吧       
搞什么?那是我运行的结果呀,总之rename 一句搞定
复制内容到剪贴板
代码:
for i in {0..9}; do
touch "hello everyone $i"
done
ls -c1
rename "hello everyone " "" *
ls -c1
      
打倒 dearvoid !      
呵呵 原来是文件内容啊....
总之要打倒....      
[quote=serveronly]打倒 dearvoid ![/quote] 俺什么时候成了众矢之的了       
这叫恼羞成怒      
学了sed能搞定我的要求吗????