LWN.net Logo

Advertisement

Smart VPS: 192 MB RAM, 10 GB disc space, 50 GB data transfer and Virtuozzo OS virtualization solution.

Advertise here

Useless use of ...

Useless use of ...

Posted Jul 21, 2003 1:27 UTC (Mon) by orabidoo (guest, #6639)
In reply to: Useless use of ... by mikal
Parent article: Graphics tricks from the Linux command line (IBM developerWorks)

Nah, you just do:

for i in *.jpg; do; whateveryouwant; done

No need for ls or find. Long live shell globbing :)


(Log in to post comments)

Speaking of useless elements ...

Posted Jul 21, 2003 13:42 UTC (Mon) by Peter (guest, #1127) [Link]

for i in *.jpg; do; whateveryouwant; done

Eh, be careful when pointing out eye motes. One of those semicolons doesn't belong. (Which semicolon? An exercise for the reader.)

Speaking of useless elements ...

Posted Jul 21, 2003 18:05 UTC (Mon) by flewellyn (subscriber, #5047) [Link]

Obviously, the one after the do. That won't do anything. It should just be: for i in *.jpg; do whateveryouwant; done Then all shall be happy and fluffy and wonderful.

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds