Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
String search
Name: jbritto Date: December 15, 2004 at 10:54:09 Pacific OS: Solaris CPU/Ram: N/A
Comment:
Hi
I need to display a line and its previous line that has search string from bottom of the file. For ex. My search string is “One” and the data file is as below
First Occurrence One Two Second Occurrence One Two Third Occurrence One Two Expecting output as :
Summary: How do I search a string in a file and then replace it with another string. For example: I am looking for a string with the name date, and I want to replace it with the current date. I know how to fin...
Summary: Hey: i have following content in file... TARGETS += TAR1 TAR1TAR2 TAR3 Now i have to check whether TAR1 exists or not. Its easy to find but in this case it gives two occurences. I need independent (T...