From f0260521a1ec08556b51ae1397e1ed7522ce83ae Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Mon, 16 Nov 2026 08:27:51 -0600 Subject: [PATCH] Add Remove All Whitespace in Bash --- archive/b/bash/remove-all-whitespace.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 archive/b/bash/remove-all-whitespace.sh 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'