LoginSignup
0

More than 5 years have passed since last update.

ファイルのカラムを並べ替え

Last updated at Posted at 2017-11-09

カラムを並び替え

 $ cat data.txt
 hoge1 hoge2 hoge3
 $ awk '{print $0}' data.txt
 hoge1 hoge2 hoge3
 $ awk '{print $3,$2,$1}' data.txt
 hoge3 hoge2 hoge1
 $ awk '{print "hoge"$3,$2,$1}' data.txt
 hogehoge3 hoge2 hoge1


Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0