$ FILE_NAME=`(cat somefile | head -1)` | tee -a dump.txt $ echo $FILE_NAME $
- Now, why doesn't the output of
(cat somefile | head -1)reach the standard input of tee ..?
- If the output reached tee, then it could copy it to dump.txt file and the standard output.
- Also the variable
$FILE_NAMEdoes not receive the value.