Horje
reverse string in shell script Code Example
reverse string in shell script
#!/bin/bash
read -p "Enter string:" string
len=${#string}
for (( i=$len-1; i>=0; i-- ))
do
# "${string:$i:1}"extract single single character from string.
reverse="$reverse${string:$i:1}"
done
echo "$reverse"




Shell

Related
remove passphrase from ssh key Code Example remove passphrase from ssh key Code Example
remove gitignore files Code Example remove gitignore files Code Example
install cassandra ubuntu Code Example install cassandra ubuntu Code Example
uninstall all requirements Code Example uninstall all requirements Code Example
powershell run bat file Code Example powershell run bat file Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11