How to check whether the given value from the command line is a string or not in bash scripting?
eg: I will give input as stackoverflow from the command line and my bash script should check the given value is a string(i mean a sequence of characters) or a numeric value.
declare -iis in use, but it's poor form). Even12is a sequence of characters (first the character1, then the character2); and when you runnewvar=$(( 12 + 1 )), the value of13resulting from that is a string as well.