rpl - Replace Strings

rpl is a UNIX text replacement utility
Download

rpl - Replace Strings Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Laffey Computer Imaging
  • Publisher web site:
  • Operating Systems:
  • Unix
  • File Size:
  • 64KB

rpl - Replace Strings Tags


rpl - Replace Strings Description

rpl- Replace Strings is a UNIX text replacement utility. It will replace strings with new strings in multiple text files. It can work recursively over directories and supports limiting the search to specific file suffixes. rpl ] Details rpl replaces old_str with new_str in all target files. It returns the number of strings replaced or a system error code (non-zero) if there is an error. Note that you should put strings in single quotes if they contain spaces. You must also escape all shell meta-characters. It's a good idea to put ALL strings in single quotes. If one of the strings starts with a "-" you need put "--" as the last argument BEFORE the string. This will Prevent the options parser from treating the string as a command- line option. For Example: rpl -i -- '-8x' '+8x' myfile which would replace occurences of "-8x" with "+8x" in the file myfile (ignoring case). A period will be printed to stderr as each target file is processed to give you feedback on the replacement Progress. You may use the quiet (-q) option to suppress all output but major error reporting. rpl will Attempt to maintain the owner, group and permissions of your original files. For safety, rpl creates a temporary file and makes changes to that file. It then moves the temporary file over the original file. rpl sets the owner, group, and permissions of the new file to match those of the original file. In some circumstances rpl will not be able to do this (such as when a file is owned by the superuser but you have group write permission). In these cases rpl will warn you that the owner/group or permissions cannot be set and that file will be skipped, unless you use the force (-f) option. Note that the use of temp files in predictable, world-writeable Locations could lead to symlink attacks. Ideally you should set the $TMPDIR environment variable to a private directory readable and writeable only by y


rpl - Replace Strings Related Software