How to extract the last digit from an input parameter???
Hi, I'm looking to find out how do I write a bash script that will take the last digit from a command and display it? Basically I have my script and I want it to take the last number from the date,extract it and place it on a separate line on its own.
This is what I have so far:
echo 'NEST 304 UNIX Operations'
echo 'Marcus Ramsawak'
I'm doing this for school and I'm stuck, I hope I can get some hints and not the answer flat out.