Since you're not chomping your input, you're actually executing two commands "sha1sum $file" and ">data". The second one generates an empty file....
Update: changed "xyz" to "data" to reflect the name used in the OP.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: What is causing sha1 system call to fail to redirect?
by roboticus
in thread What is causing sha1 system call to fail to redirect?
by Puregnome45
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |