On 30/3/2006, at 22:39, Quinn Comendant wrote:
Yep, that works great. But I had to add a "cat - | " to the beginning to pass stdin. Here is the finished command:
cat - | { if [ -f /tmp/tm_saved_regex ]; then REGEX="`cat /tmp/tm_saved_regex`";
Here’s a little trick I rarely gets to show off:
REGEX="$(< /tmp/tm_saved_regex)"
Syntactically not that much saved, but a process less to launch :)