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.
replacing the path definition
Name: kparthiban Date: August 17, 2005 at 08:02:40 Pacific OS: unix CPU/Ram: 255
Comment:
Please help me in writing a script I have to write a script for replacing a line in a file
For Eg. 1)The file name is testfile 2) The testfile contains about 100 lines 3) I want to replace the 10th line and 20th line in the file
4) The line is in the format as follows
10th line--setenv WORK_DIR /opt/informix/ this should be replaced with the following new line---setenv WORK_DIR /home/informix/
the 20 th line as like same format
so how to write a script to replace the multiple lines in the file
Summary: Hi, I have lots of .csh script that refers to "/tmp" path. How do I set "/tmp" to refer to another path eg."/home/abc/mytmp" without replacing the script "/tmp" ? Thanks. ...
Summary: Guys, I know nothing about Unix, so I thought... I'll ask someone who does. My wife's work has a small server (don't ask whats in it yet cause I haven't looked) The server is running as a Unix box wit...
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...