Guest_imported
New member
- Jan 1, 1970
- 0
Hello,
Does anyone know of any built in unix command that can print any single line that the user wants from a file?
File exceeds 100 lines, lines are separated with newline character '\n'.
I need to extract certain line within the file. Have tried inserting line at beginning of each line then grepping the current number and cut the second field, but the problem is grep is having problem when file exceeds 100 lines, grepping for $I (ex. where $I=1) would return 1, 10,100 101 and so on.
Any help is greatly appreciated.
Thank you.
Does anyone know of any built in unix command that can print any single line that the user wants from a file?
File exceeds 100 lines, lines are separated with newline character '\n'.
I need to extract certain line within the file. Have tried inserting line at beginning of each line then grepping the current number and cut the second field, but the problem is grep is having problem when file exceeds 100 lines, grepping for $I (ex. where $I=1) would return 1, 10,100 101 and so on.
Any help is greatly appreciated.
Thank you.