651 B
651 B
title | tags | |||
---|---|---|---|---|
column |
|
Put output into column.
du -h /etc/* | column
Reformat file with an explicit separator (-s
):
column -ts: /etc/passwd
Give columns names (-N
), so you can hide some (-H
):
column -ts: -N User,PW,UID,GID,Description,Home,shell -H PW,GID /etc/passwd
Reorder with -O
(unspecified items remain):
column -ts: -N User,PW,UID,GID,Description,Home,shell -H PW,GID -O User,Description,shell /etc/passwd
Output to json format with -J
:
column -J -ts: -H PW,GID,shell -N User,PW,UID,GID,Description,Home,shell /etc/passwd