Skip to content

Instantly share code, notes, and snippets.

@djm158
Created February 28, 2018 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djm158/fa7884d9f1abd199e99b7a281c00613f to your computer and use it in GitHub Desktop.
Save djm158/fa7884d9f1abd199e99b7a281c00613f to your computer and use it in GitHub Desktop.
#!/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