Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Text Editing&Processing > Others

    rsed 0.3

    Download button

    Downloads: 636  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.9/5)
    22 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Abi Arroyo | More programs
    GPL / FREE
    September 20th, 2009, 00:07 GMT
    ROOT / Text Editing&Processing / Others

     Read user reviews (0)  Refer to a friend  Subscribe

    rsed description

    A recursive version of sed

    rsed is a recursive version of sed. It also solves a few of the other limitations of sed. They include:

    - The ability to easily see which files will be changed ahead of time
    - Save original files - in case you need them later
    - Test your sed expressions easily

    Usage:

    rsed [OPTIONS] [files]

    -c [current] search string
    -r [replacement] replacement string
    -t [directory] temporary directory
    -v verbose mode
    -q quiet mode
    -nf do not exit on failure
    -d delete files after operation is complete
    -nocolor turn color off

    If -c is specified but -r is not the script performs a test run without modifying any of the files.

    rsed examples:

    Here are some examples of how you can use the script:

    rsed -c "^Tset"
    Find files that contain the regexp: ^Tset
    This does not change any of the files, it is considered a test run

    rsed -c "^Tset" -r "Test"
    Replace the occurances of ^Tset with Test
    This modifies the file, and saves a copy of the original filename (by appending rsed to the filename)

    rsed -c "^Tset" -r "Test" -d
    Replace the occurances of ^Tset with Test
    This modifies the file and deletes the original upon completion.

    rsed -c "^Tset" -r "Test" -d -q -nocolor
    Replace the occurances of ^Tset with Test
    This modifies the file, deletes the original upon completion, runs in quiet mode, and displays no color

    rsed -c "^Tset" -r "Test" -nf
    Replace the occurances of ^Tset with Test
    This modifies the file, creates a copy of the original, and it does not exit when it encounters a failure (such as not having the permission to modify a file).


    Product's homepage

      


    TAGS:

    recursive sed | sed expressions | search strings | recursive | sed | expressions

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM