On 5/11/06, Philip Ganchev <[EMAIL PROTECTED]> wrote:
On 5/11/06, Axel Liljencrantz <[EMAIL PROTECTED]> wrote:
[...]
> # Remove a sequence of files
> rm img(seq 4 39).jpg
If brace expansion uses whitespace separators,
rm img{(seq 4 39)}.jpg
Otherwise,
function comma -d "Convert the array ofarguments into a
comma-separated list useful for brace expansion."
for i in $argv
echo -n $i,
end | sed -r 's/,$//'
end
rm img{(seq 4 39)|comma}.jpg
I just noticed that this also works (without commas), although I don't
know why. A bug?
rm img{(seq 4 29)}.jpg
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users