Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
unix script - find and replace
Name: amir Date: December 3, 2003 at 23:08:43 Pacific OS: UNIX - Solaris CPU/Ram: Sun, ultra10
Comment:
Hi all,
I have a lot of similar files that i have to update. I need an unix script that scan all these file, looking for old templet and replace it with new one.
for example: I have two similar files, file#1 .ex and file#2.ex i need a scrip that scan these two flies and will replace 0101 templet with 1010 11 templet.
Summary: Hi all, I have a script that scan files, find old templet and replace it with new one. #!/bin/ksh file_name=$1 old_templet=$2 new_templet=$3 # Loop through every file like this for file in file_name d...
Summary: My bad, put the wrong script in there, it should be: #!/bin/ksh stty erase ^? rtdir="/remote/directory" list=`cd $rtdir; ls` function changecities { read cityreplace'?Enter City to Replace With> ' for...
Summary: I added inputs to catch the folder names I want to copy and name, but aside from that its the same as your script. The script appears to be finding and outputting the correct folders on the screen bu...