Slicing and Dicing on the Command Line

Written By
JP
Jerry Peek
Apr 17, 2009

“As you saw in last month’s column (if you didn’t see the
column, you might want to review it), to start a new line at any
point in plain text, simply insert a newline character. To join two
lines, remove the newline between them — and maybe add a space or
TAB character to separate them. When a terminal or printer reads a
TAB character, it moves the current position to the next tabstop.
TAB characters are also used as field separators; you can make a
simple database with TABs between the fields and a newline at the
end of each record.

“Linux utilities can also reformat text that doesn’t contain
TABs. We’ll see examples of that, too.

Complete
Story

JP

Jerry Peek

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.