diff --git a/archive/b/bash/remove-all-whitespace.sh b/archive/b/bash/remove-all-whitespace.sh new file mode 100644 index 000000000..77d4959f5 --- /dev/null +++ b/archive/b/bash/remove-all-whitespace.sh @@ -0,0 +1,8 @@ +#!/bin/bash +if [ -z "$1" ] +then + echo "Usage: please provide a string" + exit 1 +fi + +echo "$1" | tr -d ' \t\n\r'