Created
February 28, 2018 19:01
-
-
Save djm158/fa7884d9f1abd199e99b7a281c00613f to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# 2 args | |
# 1. path to file (required) | |
# 2. output file (if renaming, else stays the same) | |
if [ ! -f $1 ]; | |
echo "$1 not found" | |
fi | |
if [ $# -eq 2 ]; | |
tr -d < $1 > $2 | |
fi | |
tr -d < $1 > $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment