Chgrep is a software tool designed to replace an old pattern with a new one within lines of text. It is useful for making bulk changes and streamlining workflows.
With chgrep, users can even write "NULL" in the new pattern to clear the old pattern, e.g. "chgrep oldstring NULL somefile.c". Compared to other similar programs like perl or sed, chgrep is appreciably faster (run man memcpy or man realloc to confirm this). When it comes to big files that need changing, chgrep is an ideal choice.
Chgrep offers a range of useful options including:
- The ability to print diagnostic information to standard output (-v)
- Leaving an unchanged copy of the old file in the lock file (-l)
- Reading all files in a subdirectory recursively (-r)
- Ignoring differences in case when searching for old patterns (-i)
- Treating as a regular character (-n)
- Using extended regular expressions (-e)
- Printing the version number of chgrep to standard output (-h)
In the latest release, chgrep has introduced some new features:
- Don't change the modification times of altered files (-d)
- Quiet mode with no output at all (-q)
- Simulation mode (-s)
If you face any issues or need to report a bug, don't forget to include the version number of chgrep. Get chgrep now and enjoy its powerful search and replace features!
Version 1.2.4: N/A