Page is a not externally linkable
- Hardware and OS Related Technologies
-- Linux, Unix, and *nix like Operating Systems
---- remove lines in multiple files


travlang - 11:22 pm on Jun 14, 2009 (gmt 0)


I need to remove line numbers 6 to 106 on over 100000 html files. I tried sed

sed '6,106d' *.html
but this outputs to the screen
sed '6,106d' x.html > x.bak
works but I cannot do one file at a time. Does anyone know of a way to use wildcards in the output file or of a script that will go through every file in a directory and remove those numbered lines
Thanks
Howard


Thread source:: http://www.webmasterworld.com/linux/3933209.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com