I am trying to figure out what is the usage of this command:
echo < a.txt
According to text book it should redirect a programs standards input. Now I am redirecting a.txt to echo but instead of printing the content of the file it is printing out one empty line! Appreciate if anyone display this behaviour.
echo
doesn't read stdin so in this case, the redirect is just meaningless.
echo "Hello" | echo
To print out a file just use the command below
echo "$(<a.txt )"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With