Quote:
Originally Posted by
kazazza
Hmmm, ive just asked a friend and he reckons its meant to be something like this:
echo "Please enter your full name:"
read name
echo "$name | awk'{print"Hello Mr.", $2}
This doesnt actually work, but am i on the right lines? im not trying to split a file, just the string.
Is that wrong then? Thanks v. much for the quick reply.
I don't know why it did not work with you. But for me, it works fine
Cat aw1.sh
echo "Please enter your full name:"
read name
echo $name | awk '{print"Hello Mr.", $2}'
pa9442 /ms/user/s/sibasha/tmp1 70$ sh aw1.sh
Please enter your full name:
Siba Nayak
Hello Mr. Nayak