Question about copying lines from Ascii file
Dear *,
I just have a question regarding copying ascii file's content. I need to copy part of contents (e.g from line 382 to line 582) from a log file which is ASCII format. Is there any command to copy line 382 to line 582 to another file? Thanks and RGDS |
you can try to
cat <asciifile> and use the head and tail command. See their man pages for the syntax |
sed -n '382,582 p' logfile.log >destfile.log
should work. Yves. |
All times are GMT -5. The time now is 02:52 PM. |