Skip to content

Instantly share code, notes, and snippets.

@jonahvsweb
Last active February 4, 2016 17:28
Show Gist options
  • Select an option

  • Save jonahvsweb/f97208362b825a6bdb05 to your computer and use it in GitHub Desktop.

Select an option

Save jonahvsweb/f97208362b825a6bdb05 to your computer and use it in GitHub Desktop.

Revisions

  1. jonahvsweb revised this gist Feb 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .zshrc
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    ###################
    # Custom Functions
    ###################
    function newdir { mkdir $1 && cd $1; }
    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
  2. jonahvsweb revised this gist Feb 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .zshrc
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,6 @@
    # Custom Functions
    ###################
    function newdir { mkdir $1 && cd $1; }
    function parsecsv { cat $1 | cut -d $2 -f $3 | grep -v -e "^$" > ~/Desktop/$4.csv; } #Usage: parsecsv $original_csv $delimiter $field $new_csv_filename
    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
  3. jonahvsweb revised this gist Feb 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .zshrc
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,4 @@
    function newdir { mkdir $1 && cd $1; }
    function parsecsv { cat $1 | cut -d $2 -f $3 | grep -v -e "^$" > ~/Desktop/$4.csv; } #Usage: parsecsv $original_csv $delimiter $field $new_csv_filename

    #
    # More to come
  4. jonahvsweb revised this gist Feb 4, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -3,3 +3,5 @@
    ###################
    function newdir { mkdir $1 && cd $1; }
    function parsecsv { cat $1 | cut -d $2 -f $3 | grep -v -e "^$" > ~/Desktop/$4.csv; } #Usage: parsecsv $original_csv $delimiter $field $new_csv_filename

    #
  5. jonahvsweb revised this gist Feb 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .zshrc
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,4 @@
    # Custom Functions
    ###################
    function newdir { mkdir $1 && cd $1; }
    function parsecsv { cat $1 | cut -d $2 -f $3 | grep -v -e "^$" > ~/Desktop/$4.csv; } #Usage: parsecsv $original_csv $delimiter $field $new_csv_filename
    function parsecsv { cat $1 | cut -d $2 -f $3 | grep -v -e "^$" > ~/Desktop/$4.csv; } #Usage: parsecsv $original_csv $delimiter $field $new_csv_filename
  6. jonahvsweb created this gist Feb 4, 2016.
    5 changes: 5 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    ###################
    # Custom Functions
    ###################
    function newdir { mkdir $1 && cd $1; }
    function parsecsv { cat $1 | cut -d $2 -f $3 | grep -v -e "^$" > ~/Desktop/$4.csv; } #Usage: parsecsv $original_csv $delimiter $field $new_csv_filename