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: Any way of getting the modified timestamp of a file in the format I want, say dd/mm/yyyy hh24:mi:ss format, irrespective of when the file is last modi...
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: 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: Hi, I want to get the second field from a file (report.txt)like this: $ cat report.txt SheetName|RecordName|FieldName|TableName|ColumnName|Change Summ...
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 want to extract certain lines of a file between separators such as: ------ aaabbbb ------ aaaaa xxxxxx ------ xxxxx What utility (other than awk or ...
Summary: Hi, I want to read a file in a C shell script and process all the words of each line as a command set. something like this read line from file ge...
Summary: Thanks for the help... I'm teaching myself shell scripting, so I still had a little trouble with sed, but I'm sure its because of my lack of expeiri...
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: 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 am not doing integer aritmatic. i need to pick up a line from the file path.txt using sed command. with sed -n 1p path.txt will give me the fir...
Summary: Hello All, I am looking for a way to get a string from a file and assign it to a variable in Shell Script. Example I have a file FILE containi...
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: First - you probably realize that the 'i' variable in the scanf should have a '&' in front of it: scanf("%d",&i); To read from a file using scanf: i...
Summary: Hi, I have a file with sequence numbers in it. I want to insert few more sequence numbers from a new file checking the maximum sequence numbers availa...
Summary: Hi My colleague determined that I had ^M at the end of each line in the text file that I extracted. Why is it that the ^M character does not show up w...
Summary: Hi, my requirement is i need to give differnet keys depending upon filename. For ex, if filename=fil1, key feilds =1,3,4,5. for file2 key feilds are 1...
Summary: Well, I think you could do something like this..( the earlier one will not give the result as the file1 and file2 are not read in order). grep -v "sum...
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,...