Wednesday, November 16, 2005

fr - Find and replace software tool for Linux

fr - find and replace text utility


##########################################################
### Find and Replace Script by Frank Mash ###
##########################################################
--> Usage: /sbin/fr [filename] [search] [replace] [b] [i]
--> ################# EXAMPLES #############################
--> EXAMPLE 1: Find 'Apples' and Replace with 'Oranges'. Create a backup of file and proceed in Interactive mode
----> fr /path/to/file.txt Apples Oranges b i
--> EXAMPLE 2: Find 'Apples' and Replace with 'Oranges'. Create a backup of file and proceed in Non-Interactive mode
----> fr /path/to/file.txt Apples Oranges b
--> EXAMPLE 3: Find 'Apples' and Replace with 'Oranges'. Don't create a backup of file and proceed in Non-Interactive mode
----> fr /path/to/file.txt Apples Oranges
--> ################# END EXAMPLES #########################
--> ################# NOTES ################################
----> Currently you cannot proceed in Interactive mode without creating a backup
--> ################# END NOTES ############################
--> You entered: /sbin/fr help


This custom programming one liner allows you to find and replace using one line. E-mail me at softwareengineer99 on Yahoo's e-mail service if you would like the source code.


Custom programming "One Liner" lookup terms:
fr sed grep

USE THIS PROGRAMMING ONE LINER AT OWN RISK AS AUTHOR CLAIMS NO RESPONSIBILITY.
If you would like more information on any of the commands, please feel free to contact me with your . You can also read other posts on programming code, lookup the programming terms displayed above or visit my network security blog. Other external and blogs on Technorati.

1 comment:

muhammad solehuddin said...

эта статья очень полезна.
спасибо, что поделились этой статьей.
прокомментировал muhammad solehuddin