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 for find and replace
Name: krishsays Date: January 19, 2005 at 13:25:30 Pacific OS: Sun Solaris CPU/Ram: sparc
Comment:
Hi
I need to write a unix script which does the following
----------------------- This script should search var1 and var2 in properties file and get those values and then search var1 and var2 in file1 and replace its value by the values achieved from first search. There are multiple file1.
Scenario is we want to change the values in properties file and then we want to run this script and it should reflect this in change other files( html files) .
Summary: I'm terrible when it comes to Unix scripting so I'm asking for some help. I have a list of IP addresses sometimes up to 2 or 3 hundred. What I have to do is telnet to each device in the list. I mad...
Summary: Are you trying to change existing entries or add entries? If you want to change entries, and you have perl installed on the machine, try this: perl -e 's/old_stuff/new_stuff/gi' -p -i.bak filename Th...
Summary: I am trying to find a command or develop a script that will search for a group of files with a particular extension that are all residing in different subdirectories, take the output of that find comm...