Last active
March 7, 2017 06:25
-
-
Save mckelvin/f05d9af6507c057906df940a5d29c405 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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