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
cut -d' ' -f2
awk '{print $2}'
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}'
cut -c2 listdir
Here you can see for visualization:
Use cut with byte offsets:
cut -b 3
Use sed to remove trailing columns:
sed s/..//