を使用するbashスクリプトがありますdd
。問題は、ddが私のスクリプトの出力を混乱させる多くの出力を生成することです。周辺を検索してみたら解決策を見つけました。
dd if=boot1h of="/dev/r$temp1" >& /dev/null
選択肢はありますか、それとも/dev/null
唯一の方法でリダイレクトしますか?
ベストアンサー1
次に追加status=none
:
dd if=boot1h of="/dev/r$temp1" status=none
'status=LEVEL' Transfer information is normally output to stderr upon receipt of the 'INFO' signal or when 'dd' exits. Specifying LEVEL will adjust the amount of information printed, with the last LEVEL specified taking precedence. 'none' Do not print any informational or warning messages to stderr. Error messages are output as normal. 'noxfer' Do not print the final transfer rate and volume statistics that normally make up the last status line. 'progress' Print the transfer rate and volume statistics on stderr, when processing each input block. Statistics are output on a single line at most once every second, but updates can be delayed when waiting on I/O.