Re: Looking for quick way of editing a text file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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"


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux