Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
file1.txt から file2.txt にデータを追加するにはどうすればよいですか?
次のコマンドは、2つのファイルを取得し、それらを1つにマージします
cat file1.txt file2.txt > file3.txt; mv file3.txt file2.txt
ファイルの書き方は1)のようです。ファイルの最後に追加するか、2)。そのファイルを書き直します。
file2.txtの前にfile1.txtのコンテンツを配置したい場合は、結合された罰金を書き直す必要があると思います。