Very simple question but can't seem to find a simple answer...
I am writing a bash script which needs to remove all non-alphabetic and non-numeric characters. Eg. I want...
INPUT_STRING="ABC# .1-2-3"
OUTPUT_STRING= # some form of processing on $INPUT_STRING #
echo $OUTPUT_STRING
ABC123
I realize that this would be best solved using regex, but not sure how to use this effectively in the script.
All help greatly appreciated...