How do I create a column in Unix?

How do I create a column in Unix?
Answer
The syntax for extracting a selection based on a column number is:
  1. $ cut -c n [filename(s)] where n equals the number of the column to extract. …
  2. $ cat class. A Johnson Sara. …
  3. $ cut -c 1 class. A. …
  4. $ cut -f n [filename(s)] where n represents the number of the field to extract. …
  5. $ cut -f 2 class > class.lastname.
 

Tìm kiếm

Back
Top