cut(1) の使用例

概要

ファイルから指定のカラムを抜き出すコマンドツール。

使い方

/etc/groupファイルからグループ名を抜き出す
[root@RHEL51-00 ~]# cut -f1 -d: /etc/group
root
bin
daemon
sys
adm
tty
disk
lp
...

仕様

  • LSB4.0
以上

コメント