余り使われていないと思われるLinuxコマンド【paste】
これ便利だなぁ〜
$ cd /tmp $ cut -f1 -d : /etc/passwd > user.txt $ cut -f6 -d : /etc/passwd > home.txt
こんな感じでuser.txtとhome.txtが別ファイルになっていてマージさせたい場合.
#行単位でカンマ区切り.
$ paste -d , user.txt home.txt
これ便利だなぁ〜
$ cd /tmp $ cut -f1 -d : /etc/passwd > user.txt $ cut -f6 -d : /etc/passwd > home.txt
こんな感じでuser.txtとhome.txtが別ファイルになっていてマージさせたい場合.
#行単位でカンマ区切り.
$ paste -d , user.txt home.txt