Bash

Leonid Mamtchenkov leonid at leonid.maks.net
Wed Jan 21 14:03:23 UTC 2004


* Chadley Wilson <chadley at pinteq.co.za> [22-Jan-2004 08:13]:
> Hi can anyone please remind how to replace words in a text doc or script
> using bash 
> eg replace all the word john with david

cat oldfile.txt | sed -e 's/john/david/g' > newfile.txt

-- 
 Leonid Mamtchenkov.
 http://www.leonid.maks.net





More information about the fedora-devel-list mailing list