Montage, xargs and a sorted ls
Posted on 2010-08-23
I'm trying to produce a montage (with montage) of many images I have. However, if I do as follows
montage -tile 24x24 * index.png
They are inserted in the same order as ls ... which returns as the follows:
which I do not want, therefore I can use
ls | sort -n
to order my files correctly, however, how can I then pipe/pass this list into montage. I use xargs for other purposes such as
find . ...... | xargs rm.
It pipes each line separately which is perfect for my previous uses however I now need to pipe the whole list into montage so it can produce the image.