- 1). Open a blank file in any text editor.
- 2). Place the following script into the the text editor:
echo "Type your find string followed by [Enter]:"
echo "Type your replace string followed by [Enter]:"
for y in `ls *`;
do sed "s/$fstring/$rstring/g" $y > temp; mv temp $y;
- 3). Save the script with the name "findrep.sh" in the same directory as the files you want to manipulate.
- 4). Open a Terminal Window. The terminal window will be found in the operating system's main "Application" menu, under either "System Tools" or "Utilities." You will be presented with a command prompt where you will type the following commands.
- 5). Type the command "mv <path to file>" to move into the directory with the script. For example, the command would be "mv Files/" if the script was held in the "Files" directory in your home directory.
- 6). Type the command "chmod +x findrep.sh" to make the file executable.
- 7). Type the command "./findrep.sh" to execute the script.
EDITOR PICKS & Articles
- Revitalizing Interiors With Wall Coverings
- Advice for Designing Living Rooms
- Informal Dining Room Ideas
- Makeup Revolution With Luminess Airbrush Makeup
- Tips on Making Cushion Covers
- Loft Insulation Facts
- How to Paint a Door: Handle & Hardware
- Baby Health and Safety for Bathtubs
- Decorating With Shelves in a Basement Stairwell
- The Directory You Need for the Seattle Design Center
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time
Stay With Us