dcsimg
Linux Today: Linux News On Internet Time.





More on LinuxToday


Shell Scripting Boot Camp

Sep 25, 2015, 23:00 (0 Talkback[s])
(Other stories by Jed Reynolds)

Spend enough time on the command line and you'll eventually want to do many tasks that take some intricate commands, repeatedly.

A good example of this, is making thumbnails of photos. Basically, our workhorse of this script is not ImageMagick (which provides convert, identify and mogrify), but the for loop in bash itself. Ready? Grab your pen-knife and let's whittle out a script:

Complete Story