Summary: I want to be able to search for a string in a text file and pull out the line that matches my string and also a number of lines immediately before the...
Summary: Hello, I have a file that I need to extract multiple lines out of. When I find a certain keyword in the file, I need that line and the next 2 lines (t...
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: 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: hai, i want to remove duplicate lines from any part of the file...uniq command is used to remove only the adjacent duplicate lines...if we use sort ...
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: 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: 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: So, each line in your control file specifies a block of lines to extract from your data file? cat infile #ABC# line 1 line 2 line 3 #DEF# line 4 line ...
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 need some help with some flat files. The problem can be divided into two parts broadly. These files are the result of a particular extract and ha...
Summary: I need to extract all data from a file (that is dated 90 days or recent) from the day that the script is run. For ex: if the script is run on 4/1/07 ...
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: I need more help on removing the first line of my file. I have tried both suggestions but both of them seems to extract the 1st line of my old file an...
Summary: A few things: Use double quotes when trying to perform variable substition w/ sed. Also the variables need to be enclosed from the rest of your state...
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: 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 would like to get some help with my script which will read a command file,execute each command and send output to a file. My problem is how to g...
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...