1

ほとんどのUnixシェルでは、pipeとcatコマンドの能力を使用して、次の例のように非テキストデータを連結できます。

a_command_with_binary_output | cat - this_is_a_binary_file > output_file

Windowsでの上記のコマンドに相当するものは何ですか?command.comまたはcmd.exeのみを対象としています。PowerShellを使用しないでください。

4

1 に答える 1

1

一時的なスペースを節約できる場合:

a_command_with_binary_output > temp_file
copy /B temp_file + this_is_a_binary_file output_file
del temp_file

ただし、Win32 用の coreutils を入手してください。これにはcat、その他の便利なユーティリティが多数含まれています。

于 2011-09-11T18:45:57.140 に答える