Tuesday, July 28, 2009

UNIX - How do I save a portion of a log file as a new file?

My log file is huge! I need to take the last 30000 lines from A.log and save that as B.log





How do I do this in UNIX? Thanks!

UNIX - How do I save a portion of a log file as a new file?
tail -30000 A.log %26gt; B.log

flower power

No comments:

Post a Comment