Skip to content

Instantly share code, notes, and snippets.

@nestoru
Created March 21, 2014 20:14
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 nestoru/9695374 to your computer and use it in GitHub Desktop.
Save nestoru/9695374 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
# nbsp2sp.sh
filePath=$1
USAGE="Usage: `basename $0` <filePath>"
if [ $# -ne "1" ]
then
echo $USAGE
exit 1
fi
tr '\240' ' ' < $filePath > /tmp/tmp && mv /tmp/tmp $filePath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment