Advertisement
gabalese

Batch search and replace

Apr 14th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.12 KB | None | 0 0
  1. for file in `ls *html`; do sed -e "s/[regexp]/[replaced text]/g" $file > /tmp/tempfile.tmp; mv /tmp/tempfile.tmp $file; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement