thanks to everyone who replied.
Michal, your method of dealing with paths and filenames is much better
than my ugly hack. It seems to me that people would need to do this
sort of thing pretty often... I'm sort of surprised that it isn't in
scsh, to be honest. Is there a scsh-lib it can (or should) go into?
Joe, I've fixed my conditional assignment to what you suggested. I
thought something like this ought to work, and I thought I had tried
it already. But perhaps I had an extra set of brackets in, or
And Michal is right, rx is the scsh regular expression macro and the
":" is a keyword equivalent to "seq", FWIW.
Now, all I've got to do is try and chase up the output I'm not asking for.
That, and just make it better :]