text manipulation awk Get a specific column # print second column awk '{print $2}' sed Delete all lines matching a pattern sed -i '/pattern to match/d' ./infile Prepend a file sed -i '1i header line' ./infile