I have a bash script that creates some file using dd
. The problem is dd throws a great amount of output that is going to mess with the output of my script.
Searching around I've found a solution:
dd if=boot1h of="/dev/r$temp1" >& /dev/null
Is there an alternative, or is redirecting to /dev/null
the only way?
/dev/null
-- you're sudoing becausedd
needs write access to/dev/r$temp1
(I assume). You're going to need to do that no matter how you suppressdd
's output; redirecting output to/dev/null
doesn't require rootcat
,head
ortail
instead.