sed

Search and replace a pattern in all files in current directory:

for i in *; do sed 's/@domain.tld/@lists.domain.tld/g' $i > $i.new; rm $i; mv $i.new $i; done
linux/sed.txt · Last modified: 2008/08/05 13:48 by tb
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0