Linuxのローカルディレクトリにいくつかのファイルがあります。私は下記の試み、それがLinuxでgzipを実行中にエラーが発生しました
cat a*.txt >> result.txt
に動作します。しかし、私は、以下のコマンドを実行しようとすると、単一のファイルが
[[email protected] sample_input_files]$ pwd
/dev/omega/sample_input_files
[[email protected] sample_input_files]$ ls -ltr
total 16
-rw-rw-r--+ 1 omega cldusers 9 Nov 28 17:07 a1.txt
-rw-rw-r--+ 1 omega cldusers 7 Nov 28 17:07 a2.txt
[[email protected] sample_input_files]$
をgzipで圧縮されることを私は、単一のファイルに、このディレクトリ内のすべてのファイルをマージしたいと私がしたいですエラーが発生する
cat a*.txt >> gzip result.txt
cat: result.txt: No such file or directory
result.txt.gzを同じ場所に保存したいと思います。それ、どうやったら出来るの ?
スタックオーバーフローは、プログラミングおよび開発の質問のサイトです。この質問は、プログラミングや開発に関するものではないので、話題にはならないようです。ヘルプセンターの[ここではどのトピックを参照できますか](http://stackoverflow.com/help/on-topic)を参照してください。おそらく、[スーパーユーザ](http://superuser.com/)や[Unix&Linux Stack Exchange](http://unix.stackexchange.com/)の方が良いかもしれません。 – jww