I have a shell script named
merge that takes a parameter that is a revision number. I usually invoke it
I would like to pass in zero parameters. The script should search my terminal output for the latest occurrence of the pattern
/^Committed revision (\d+)\.$/ and use that value. However, I don't know how to search the terminal output, or indeed whether it is possible to do so.