What is the difference between using _<
and <
for stdin when using process substitution. This is done using bash.
Example:
read bytes _< <(du -bcm random_iso.iso | tail -1); echo $bytes
|
That's not a What that does is run:
Where the fd x is the reading end of a pipe. At the other (writing) end of the pipe, a background subshell process is executing So Now I don't know where that It looks like it was meant as a convoluted way to write:
Or:
If they indeed wanted the file size rounded up to the next mebibyte on a GNU system. |
|||||
|
As mentioned, It has become conventional in Bash scripts to use While this is a convention, there are a number of good reasons to avoid abusing
I recommend putting a space before a redirect to make things clearer. I put some guidelines on good redirect style in this article. |
|||
|