LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Other *NIX (https://www.linuxquestions.org/questions/other-%2Anix-55/)
-   -   Search and Replace in bash script (https://www.linuxquestions.org/questions/other-%2Anix-55/search-and-replace-in-bash-script-717562/)

daemoneye 04-07-2009 07:23 PM

Search and Replace in bash script
 
Hello. I'm looking for some advice on a bash script I'm writing for Mac OSX. The script is replacing a line of html code to change a image name to that of the image in the directory. There can be up to three images in each directory (125 of them). Is there a way to do a find and replace?

jlliagre 04-08-2009 01:24 AM

Have a look at the "sed" command.


All times are GMT -5. The time now is 10:46 AM.