rsed

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

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  24 Sep 2007 05:37
  • Rrelease-after

Changes: The script was modified to use find and grep instead of rgrep.

  • Rrelease-mid
  •  01 May 2005 04:36
  • Rrelease-after

No changes have been submitted for this release.

Rss Recent comments

Rcomment-before 02 May 2005 09:37 Rcomment-trans quanstro Rcomment-after

Re: 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.

Rcomment-before 01 May 2005 14:36 Rcomment-trans lowlifeish Rcomment-after

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
>

Rcomment-before 01 May 2005 08:12 Rcomment-trans quanstro Rcomment-after

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

No-screenshot

Project Spotlight

fsprotect

Scripts that make filesystems on Debian systems immutable.

No-screenshot

Project Spotlight

Hop

A programming environment for the Web 2.0.