SCRIPT
#!/bin/bash
input="$1"
output=""
output=$(echo $input | rev)
echo "Input : $input"
echo "Output : $output"
OUTPUT:
sujin@sujin:~/sujin/common/script$ bash reverse.sh linux
sujin@sujin:~/sujin/common/script$ bash reverse.sh linux
Input : linux
Output : xunil
No comments:
Post a Comment