Summary: Hi, I have a file with a HDR, some lines (number of lines can vary) and a TRL. And this set is repeating. I have to insert 2 lines just after the TRL,...
Summary: I was wondering if you could help me with a script to remove ALL the lines in a file that contain the word "BOUNDARY". I have the script like this so...
Summary: i hv written a shell script which exports data to a file and i want to filter out one particular line from that file and manipulate that line further....
Summary: I want to extract certain lines of a file between separators such as: ------ aaabbbb ------ aaaaa xxxxxx ------ xxxxx What utility (other than awk or ...
Summary: Hello all, I have wriiten a script to create a html file on the fly. It is as shown below :- 1>echo " " > log.html 2>cat test.log >> log.html 3>echo "...
Summary: hi, I am trying to write a script to delete few lines from the existing files. The requirement is as follows: 1. I need to grep for a pattern "abc" in...
Summary: It depends upon how you want to recognize the specific line. Do you want the fourth line from a file?? Do you want a line that contains a specific p...
Summary: hi, i need to pick up a line from a file and store it in a variable.i dont know the number of lines that the file contains...so i cannot specify it by...
Summary: Hi, I have a file which contains 15 lines (could differ). I want to exclude the first 2 lines and the last 6 lines from this file. All the lines with ...
Summary: Hi guys this my sample file sample.ksh DBUID=testdatabase DBLOC=wm4r2 i want replace DBUID=testdatabase by DBUID=$myvariable (i.e myvariable=arundata...
Summary: Hello all, I hav a c program which does a scanf. its like this :- int main() { int i; scanf("%d",i); return 0; } Is it possible 4 the program ...
Summary: my problem is i want to replace a line in a file e.g i want to replace the line DBUID= (some name) with DBUID=$user variable file name is sample.ksh...
Summary: Hi, I have a massive datafile - 1,000,000+ characters. I want to remove all the new lines from it so the data is one continuos flow. I tried xargs bu...
Summary: I'm trying to remove a specific line from a file based on a user defined input. I had found a similar situation where sed was used, but when I tri...
Summary: How do i delete first line of a file. The file starts with page break ^L. The first line contains the page break ^L. The file may have multiple pagebr...
Summary: Hi, I have a file containing 556,247 lines in it. I would like to extract the lines from 200,000 to 300,000. How do I acheive this using a single sed ...
Summary: What UNIX command can I use to get this output: Smith 3 Jones 1 Arnold 2 from a file with these contents Smith Jones Smith Arnold Smith Arnold Any hel...
Summary: How can I remove a line in a file? e.g. File containing the following 307 319 352 If I wanted to remove line 319, what would be the syntax? Any alive ...
Summary: Hello james, thanx 4 the reply. prg02 should have been fail & not success. i am sorry 4 that mistake. I will just rephrase the question again ... more...
Summary: What makes this more complex is the need to match up multiple lines of the same acct/amt such as: 000681047 -600.00 000681047 -600.00 000681047 600....
Summary: Hi, I am trying to find a way to grep for consecutive lines in a file. I need to see if a specific string appears 24 consecutive times in a log file ...