Skip to content

Instantly share code, notes, and snippets.

@terryoy
terryoy / collection.sh
Last active October 14, 2015 00:57
A Collection of Shell Scripts/Commands
# convert text files to all lower case
$ tr '[:upper:]' '[:lower:]' < input.txt > output.txt
# Convert Data Stored in a Shell Variable From UPPPER to lowercase
$ echo $VAR_NAME | tr '[:upper:]' '[:lower:]'
# Convert Data Stored in a Shell Variable From lowercase to UPPER
$ echo $VAR_NAME | tr '[:lower:]' '[:upper:]'
# job control:
# ctrl+z - suspend a job and put into background
@terryoy
terryoy / gist:4240884
Created December 8, 2012 16:21
sae django setup
# install virtualenv to manage the environment
sudo apt-get install python-virtualenv
# create site folder
mkdir mysite
cd mysite
# activatet the virtualenv environment
virtualenv venv
source venv/bin/activate