I'm trying to work on a script but I keep losing stdin data after calling the file
/tmp/fee will be empty.
I have tried using exec and setting a variable to stdin at the beginning.
My bash skills are not the best, so I am hoping someone has an idea about what I am doing wrong.
Thanks,
Bill
cat foo | test.sh
:
Code:
#!/usr/local/bin/bash
filetype = `/usr/bin/file -b -`
cat > /tmp/fee
/tmp/fee will be empty.
I have tried using exec and setting a variable to stdin at the beginning.
My bash skills are not the best, so I am hoping someone has an idea about what I am doing wrong.
Thanks,
Bill