echo

From Initq

Jump to: navigation, search

The echo command echoes the text you entered.

 [alibaba@ohnonono junk]$ echo -e "hello \nthere" > hello.txt
 [alibaba@ohnonono junk]$ cat hello.txt
 hello
 there

-e enables interpretation of backslash escapes.

Personal tools