Command to find and replace, but not creating a new file
So I have a file, with a bunch of pattern "foo", and I wanna replace them with "bar":
blah1 foo1 blah2 blah3 foo2 blah4foo3
I wouldnt bother if the file size is just a couple of Kb, but, what if its a few hundred of Mb, Im restricted in disk space, then you are in trouble.
I think vim can do this with "-c" switch if iirc, but I believe there is a more elegant command out there...
The power of plain text? It can control an entire OS
|Thread||Thread Starter||Forum||Replies||Last Post|
|Find command (Linux options?)||deadeyes||FreeBSD General||11||23rd August 2009 06:07 PM|
|Creating 2 slices||Beastie||FreeBSD Installation and Upgrading||7||22nd March 2009 11:22 PM|
|Running a command with input from a file.||bigb89||Programming||4||21st January 2009 05:36 PM|
|how to enable file/command completion for ksh93?||TerryP||General software and network||1||31st August 2008 08:23 AM|
|Find pattern in a file and erase it||c0mrade||Programming||8||25th June 2008 05:31 PM|