Skip to content

Instantly share code, notes, and snippets.

@martinbpeters
Created November 26, 2010 10:28
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 martinbpeters/716532 to your computer and use it in GitHub Desktop.
Save martinbpeters/716532 to your computer and use it in GitHub Desktop.
Convert text in file to upper case using shell
#!/bin/sh
: <<'COMMENTOUT'
Simple script to change the case of text within a file
COMMENTOUT
cat $1 | tr '[a-z]' '[A-Z]' > $2
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment