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

    pyreplace 1.0

    Download button

    No screenshots available
    Downloads: 169  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Richie Ward | More programs
    BSD License / FREE
    August 26th, 2011, 08:44 GMT
    ROOT / Utilities

     Read user reviews (0)  Refer to a friend  Subscribe

    pyreplace description

    Recursively find and replace in file names and contents

    pyreplace is an utility to recursively find and replace in file names and contents.

    usage: pyreplace [-h] [-d DIRECTORY] [-r] [-v] [-g EXPRESSION]
                     [-f FIND REPLACE] [-fi] [-c FIND REPLACE] [-ci]

    Recursively find and replace in file names and contents.

    optional arguments:
      -h, --help            show this help message and exit
      -d DIRECTORY, --directory DIRECTORY
                            Set starting directory.
      -r, --dry-run         Dont make any changes, just list what would happen.
      -v, --verbose         Display changes made.
      -g EXPRESSION, --glob EXPRESSION
                            Find files with matching extension. Example: *.txt
      -f FIND REPLACE, --filename FIND REPLACE
                            Search filename for FIND and replace with REPLACE.
      -fi, --filename-insensitive
                            Ignore capital/lowercase when searching filename.
      -c FIND REPLACE, --contents FIND REPLACE
                            Search contents for FIND and replace with REPLACE.
      -ci, --contents-insensitive
                            Ignore capital/lowercase when searching contents.

    Usage Examples:


    Replace foo with bar in filenames matching *.txt:
    pyreplace -g *.txt -f foo bar

    Find and replace foo with bar in files matching *.txt (Contents):
    pyreplace -g *.txt -c foo bar

    As above with all files in current directory:
    pyreplace -c foo bar

    As above with all files in another directory:
    pyreplace -d /home/foo -c foo bar


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    find content | replace content | content | finder | replace

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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