Skip to content

Commit

Permalink
csvpreview (paulirish#73) - preview csv files in terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
sepans authored and paulirish committed May 24, 2016
1 parent 8501da2 commit 7c46f8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .functions
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ function localip(){
sed -r "s/(VLAN Configurations)|==*//g"
}

# preview csv files. source: http://stackoverflow.com/questions/1875305/command-line-csv-viewer
function csvpreview(){
sed 's/,,/, ,/g;s/,,/, ,/g' "$@" | column -s, -t | less -#2 -N -S
}

# Extract archives - use: extract <file>
# Based on http://dotfiles.org/~pseup/.bashrc
function extract() {
Expand Down

0 comments on commit 7c46f8c

Please sign in to comment.