1

Redirecting the content of a file to the command "echo"

view story
linux-howto

http://unix.stackexchange.com – I have a file named my_file.txt whose content is just the string "Hello". How could I redirect its content to the command echo? I know I have the commands less, cat, more... but I need to do it with echo. I tried this: $ cat my_file.txt | echo and also this: $ echo < my_file.txt But in both cases it appears only a blank in the stdout, not the content of my_file.txt. How could I do that? Thanks in advance :-) (HowTos)