Skip to content

Instantly share code, notes, and snippets.

@jonahvsweb
Last active February 4, 2016 17: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 jonahvsweb/f97208362b825a6bdb05 to your computer and use it in GitHub Desktop.
Save jonahvsweb/f97208362b825a6bdb05 to your computer and use it in GitHub Desktop.
Useful ZSH custom functions
###################
# Custom Functions
###################
function newdir { mkdir $1 && cd $1; } #Usage: newdir $new_dir_name
function parsecsv { cat $1 | cut -d $2 -f $3 | grep -v -e "^$" > ~/Desktop/$4.csv; } #Usage: parsecsv $original_csv $delimiter $column_num $new_csv_filename
# More to come
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment