I am stuck in a very tight situation.. need your help
The below script does not work even please let me know where is the problem and rectify me.
Script as below:
#!/bin/bash file_name=$1 old_templet=$2 new_templet=$3 for file in file_name do cat $file | sed "s/old_templet/new_templet/g" > $file.new done
1)Here the file_name stands for file name
2)old_templet stands for old word to change
3)new_templet stands for new word
But when the script it gives me the below error:
./replace.sh one single oracle
cat: file_name: No such file or directory
Thanks for your patience..
hope 4 a speedy reply