Hello great folks,
As the title says i want to join 2 or more sed and head/tail command in a script. How should i do it ?
I have
Code:
#!/bin/sh
for file in ./*.htm
do echo $file
sed -r 's_<font color="#800000"> <a name="([1-9]|[1-4][0-9]|50)"></a>|\[([1-9]|[1-4][0-9]|50)\] \[<a href="#top">[A-Za-z. ]+</a>\]__g' "$file" >"$file"_new
done
exit
Want to add
Code:
#!/bin/sh
for file in ./*.htm
do echo $file
tail -n +35 "$file" | head -n -11 > "$file"_new
done
exit
I may have to add more so looking forward to grab the base idea.
Thanks in advance for any kind of help and suggestions.
Bookmarks