I am tring to achieve this in unix but could not get.
I tried various commands after reading man page.
some of them are:
UnixServer:/home/user $ echo "A" | od -s
0000000 16650
0000002
UnixServer:/home/user $ echo "A" | od -i
0000000 16650
0000002
UnixServer:/home/user $ echo "A" | od -L
0000000 1091174400
0000002
UnixServer:/home/user $ echo "A" | od -d
0000000 16650
0000002
UnixServer:/home/user $ echo "A" | od -D
0000000 1091174400
0000002
Help is appreciated for the command to convert to decimal.
Posters fpmurphy and drl have already told you the answer to that...but for some reason you havent taken the time to read their posts. The decimal value of 376 is 254 and take sometime to become familiar with base conversions otherwise you will get stuck again somewhere.