#!/bin/bash IFS=$'\n' for l in `cat access.log`; do IFS=" " echo "${l}" | cut -d" " -f7 done