Skip to content

Instantly share code, notes, and snippets.

@mckelvin
Last active March 7, 2017 06:25
Show Gist options
  • Save mckelvin/f05d9af6507c057906df940a5d29c405 to your computer and use it in GitHub Desktop.
Save mckelvin/f05d9af6507c057906df940a5d29c405 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Convert timestamp in first column to localtime and open in tabview
if [ $# = 0 ]; then
echo "Usage: $0 some.csv"
exit 1
fi
perl -pe 'use POSIX qw(strftime); s/^(\d+)/strftime "%F %H:%M:%S", localtime($1)/e' $1 | tabview -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment