Skip to main content

13.1) Echo


This can be used to echo comments. Type:

echo ‘This was written using echo’

This will just echo the statement in quotes. If you want to echo the comment in quotes into a file then use the redirection command and name the new file to be created (I will name it outputecho). To do this, type:

echo ‘This was written using echo’ > outputecho

Now to see the result, type:

more outputecho

This is a very simple activity using echo. Its real strength is when used in conjunction with higher level Unix/Linux commands but it is good to know now.