Click to See Complete Forum and Search --> : echo command


cdburgess75
11-17-2000, 08:04 AM
I have a file in root dir called .login. In this file there is an if... then... thing followed by echo "something". Anyway I messed it up with vi and now I cant seem to be able to type what I want in the echo section. It used to say "dont login as root, try su instead" like as a reminder. I was gonna change it to make it say something different. But I can fiure out how the quotes and stuff are supposed to be in order to echo what i type. i man echo and looked but I cant get it still. Anybody got a simple answer?

The_Stack
11-17-2000, 12:58 PM
try the following:
try each of the following at the CLI:

echo "hi"
echo 'hello' there
echo "'hello' there"
echo '"hello" there'
echo hello there
echo "hello" ; echo "there"
echo -n "hello" ; echo "there"
echo "`ls`"


I hope the examples and man echo gives you some insight.

Good Luck!