facebook twitter hatena line email

「Linux/コマンドメモ/cut」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(ページの作成:「==先頭xバイト切り出し== vi test.txt aiueo kakikukeko aiueo cut -b-3 test.txt > aiu > kak > aiu ==スペース区切りの文字を取り出して表...」)
 
(相違点なし)

2015年5月20日 (水) 03:12時点における最新版

先頭xバイト切り出し

vi test.txt
aiueo
kakikukeko
aiueo
cut -b-3 test.txt
> aiu
> kak
> aiu

スペース区切りの文字を取り出して表示

vi test.txt
test1 test2 test3
test4 test5 test6
cut -f 1,3 -d " " test.txt
> test1 test3
> test4 test6