ext_50126 ([identity profile] achinhibitor.livejournal.com) wrote in [personal profile] chhotii 2013-12-11 02:11 pm (UTC)

I can do this without using anything that is programmable (like sed or awk):

for FILE in *
do
    paste <(head --lines=-1 $FILE) \
         <(while read X; do echo Throat-warbler-mangrove ; done <$FILE) \
         <(tail --lines=+2 $FILE) |
    grep -n $'jpg.*\tThroat-warbler-mangrove\t.*jpg' &&
    echo $FILE
done

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting