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.
Extracting range of lines from a fi
Name: pnbalaji Date: February 13, 2008 at 14:36:23 Pacific OS: AIX 4.3.3 CPU/Ram: 16GB Product: IBM, 7026-H80
Comment:
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 in the range should be redirected into another file. Can some one help me?
I did this long back with an SED command, I am not able to find out that.
Summary: I am writing a script that checks to see if a process is running, i am using this command. ps -ef|grep -c PROCESS I have it in an if statemnt whereby if 2 or more lines are present then i echo PASS, e...
Summary: Hi All, I want to get the first line from a file and write it into another file. Please help. Thanks in advance. Regards, Raj Thanks & Regards, Raj...
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 5 line 6 line 7 #GHI# line 8 #JKL# line 9 line 10 ...