Dear all,
I've a situation here, I have a big file which contains about 20Million line as shown as below
I want to fish out some lines according to the line position of the big file, for example here line number 3,4,7 ...
so the expected output will be like this
currently I manage to fish out the sequence by creating scripting using sed command
However i have millions of lines to be fished out. Using sed command as above takes me days to get the job done. This is because the sed will read from start of the line until end and it continue for each search.
Is there any other way to make things done faster.
Thanks in advance
kamal