Assume file1 contains a list of strings.
My first script is scanning the file and deals with the lines with a certain patern in it:
grep 'somepatern' file1 \
while read LINE ; do
doSomethingAboutIt
done
Now, I need a second script that deals with the same lines (& do something differently) but in the opposite order; the last line found in the file with that patern shuld be handled first.
Please help me. Thanks so much!!!