Looking for quick way of editing a text file
gb spam
gbofspam at gmail.com
Mon Nov 21 00:31:28 UTC 2005
> 2: You might want bsed:
>
> Page:
> http://www.cskk.ezoshosting.com/cs/css/bsed.html
>
> Script:
> http://www.cskk.ezoshosting.com/cs/css/bin/bsed
>
> Bsed is a wrapper for sed. It takes pretty well the same arguments as sed,
> but edits files in place. I frequently use it for batch edits; it's very
> handy. Example:
>
> bsed '4s/that/that/' filename.txt
>
> Replace "this" with "that" on line 4. It essentially does all the redirection
> of the first sed with error handling, temp files and such.
>
> Cheers,
check out "sed -i"
More information about the fedora-list
mailing list