rsed solves one of the limitations of sed: recursion. It is an interface script that provides a few other useful features besides recursion: the ability to test expressions easily before performing modifications and automatically saving the original files.
| Tags | Systems Administration Text Processing General |
|---|---|
| Licenses | GPL |
| Operating Systems | POSIX Linux |
| Implementation | Unix Shell bash |
- All comments
Recent commentsRe: have you tried sam http://freshmeat.net/projects/sam/
try ssam. ssam is to sam as sed is to ed.
> rsed does sound similar to sam, as it
> provides all of the features you have
> listed. I guess the main difference
> between the applications is that rsed is
> command line driven, while sam appears
> to be an editor.
Re: have you tried sam http://freshmeat.net/projects/sam/
I actually did not find sam (http://freshmeat.net/projects/sam/). Thanks for pointing it out. Other similar applications that I did find where: rpl (http://freshmeat.net/projects/rpl/), replace (http://replace.richardlloyd.org.uk/),
and search and replace (http://freshmeat.net/projects/searchandreplace/).
I did not like rpl because it is not open source. replace had a few broken links on its web page. Broken links just make me think there there is some sloppy underlying code, although this obviously may not necessarily be true.
And tried using search and replace, but did I couldn't get it to work quickly. Others will more likely than not have a different experience. I believe an application like this should be very easy to use, and have a short learning curve.
rsed does sound similar to sam, as it provides all of the features you have listed. I guess the main difference between the applications is that rsed is command line driven, while sam appears to be an editor.
> this sounds a lot like sam which allows
> you to edit many files at the same time
> with regular expressions and provides a
> nifty and optional gui. for example
> (assume that [ ] contains space tab, i
> can't enter tabs in this interface):
>
> X:\.h$: ,s:^#[ ]*include[
> ]+[<"]old.h[">]:#include
> <new.h>:g
>
> e.g. for each file that ends in
> ".h" select 0,$ (whole file)
> and replace old.h with new.h in the
> include statements.
>
> oh, and there's unlimited undo.
>
> erik
>
have you tried sam http://freshmeat.net/projects/sam/
this sounds a lot like sam which allows you to edit many files at the same time with regular expressions and provides a nifty and optional gui. for example (assume that [ ] contains space tab, i can't enter tabs in this interface):
X:\.h$: ,s:^#[ ]*include[ ]+[<"]old.h[">]:#include <new.h>:g
e.g. for each file that ends in ".h" select 0,$ (whole file) and replace old.h with new.h in the include statements.
oh, and there's unlimited undo.
erik