Rev.sh

From Kyle's Wiki
Jump to: navigation, search

This is a script to reverse a string for openwrt

#!/bin/ash
str="$1"

echo $str | awk '{
for(i=length($0);i>=1;i--)
printf("%s",substr($0,i,1));
}'
Personal tools
Namespaces

Variants
Actions
Efforts
Toolbox
Meta