#!/bin/bash # This program prints the nth column of a file # # usage: printcol file column awk "{print \$$2}" $1