[HELP]Newbie here!

Hi to everyone!
I say from the begining the I'm new to shell scripting but I want to learn it.
My first request sound like this:
I would like to make a shell script the returns a number but in the oposite way
(Ex:
input:123
output:321
)
Can it be done?
And if you would like to explain the commands that are used.
Thanks.

Use the search function please, ty.

ok!
I didn't understood verry much but:
I need a script that starts whit
" #!/bin/bash
read number
......

echo $reversenumber "
something like this.
And please explain the commands.Thank you.

why do you need this script?

Because I've heard that this is the easyiest method and it could be a good start for me.Thanks!

Hi,

you are nearly there. It is as easy as:

#! /bin/sh
echo "Enter number: "
read number
echo "Number reversed: "
echo $number | rev

HTH Chris

ok! That was not so dificult.thanks
Now what i want is :
if its number to write it in reverse order and if it a text to write a message
"hey pal are you blind!you don't see that this is not a number.....bla bla bla" :). can it be done?

this looks like homework for me... thread closed.