Skip to main content

Tip: Reading text streams in chunks with head and tail

posted onJanuary 11, 2003
by hitbsecnews

Learn how to process chunks of data from both static and dynamic files using head or tail commands. Whether you use the commands individually or combined, these steps can consolidate the time it takes to read a file at any given length. If you prefer working in bytes instead of lines, not to worry; this article will assist you. You can also learn how to reverse the order of lines in a file with the tac command and change the number of lines that these commands send to their standard output with the -n option.

Source

Tags

Linux

You May Also Like

Recent News

Friday, November 29th

Tuesday, November 19th

Friday, November 8th

Friday, November 1st

Tuesday, July 9th

Wednesday, July 3rd

Friday, June 28th

Thursday, June 27th

Thursday, June 13th

Wednesday, June 12th

Tuesday, June 11th