Skip to content

Instantly share code, notes, and snippets.

@jperkelens
Created January 4, 2012 23:50
Show Gist options
  • Save jperkelens/1562906 to your computer and use it in GitHub Desktop.
Save jperkelens/1562906 to your computer and use it in GitHub Desktop.
AWK in progress.
#!/bin/bash
gawk '
BEGIN {
FS = "\t";
}
$7 == 1 {
print $6 " " strftime("%Y%m%d", substr($15, 0, length($15) - 3));
}
' $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment