The first argument passed to the command will be found in the positional parameter $1
. As pointed out in the comments, you can use the rev
command to reverse the order of the characters in the string. Your script might look something like
#!/bin/bash
printf "%s !" "$(rev "$1")"