#!/bin/sh read s while [ ! "$s" = "" ] do grep "path" "$s" | awk '{ print $3; }' read s done