[student@h006 ~]$ ls name.lis? name.lis1 name.lis2 [student@h006 ~]$ cat name.lis1 Abe Osako Okada Kato [student@h006 ~]$ cat name.lis2 Tanimura Nogami Shiina
[student@h006 ~]$ cat name.lis1 name.lis2 > name.list [student@h006 ~]$ cat name.list Abe Osako Okada Kato Tanimura Nogami Shiina
[student@h006 ~]$ cat > title *** name list *** ^D [student@h006 ~]$入力の最後には ^D (EOF:End Of File) を入力します。
追加出力リダイレクション記号(>>) を使って、ファイル name.list をファイル title に追加させる事もできます。
[student@h006 ~]$ cat name.list >> title [student@h006 ~]$ cat title *** name list *** Abe Osako Okada Kato [student@h006 ~]$
[student@h006 ~]$ cat - name.lis1 - name.lis2 > name.lisx ======== name.lis1 ======== ^D ======== name.lis2 ======== ^D [student@h006 ~]$ cat name.lisx ======== name.lis1 ======== Abe Osako Okada Kato ======== name.lis2 ======== Tanimura Nogami Shiinaさらに cat には圧縮されたファイルを展開しながら標準出力へコピーする、 zcat があります。