Question

output the 2nd column of a file

given a file with two columns, separatedly by standard white space

a b
c d
f g
  h

how do I output the second column

 21  62965  21
1 Jan 1970

Solution

 56
  1. cut -d' ' -f2
  2. awk '{print $2}'
2011-05-12

Solution

 14

Because the last line of your example data has no first column you'll have to parse it as fixed width columns:

awk 'BEGIN {FIELDWIDTHS = "2 1"} {print $2}'
2011-05-12