Created
July 17, 2015 12:00
-
-
Save rhydlewis/c23e129e1972bd42916f to your computer and use it in GitHub Desktop.
useful-snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data=$(pbpaste) | |
if [ $(echo "$data" | wc -l) -gt 1 ]; | |
then | |
change=${data// | |
/ } | |
else | |
change=${data// / | |
} | |
fi | |
echo -e "$change" | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment