>>> Date: Sun, 06 Nov 2011 20:15:54 -0600
>>> Excerpted From: Ron Johnson<ron.l.john...@cox.net>
>>

> That sounds like a weird use of arrays.
>
Its a great convenience.  If you have a list of items and you are
interested only in one or two of them, using an array gives you
instant identification of them, like so:-

IFS=$'\x0A'      # elements separated by line breaks only
nzb=($(ls /home/g/dnlds/*.nzb))
rm ${nzb[0]}     # ditch previous download
pan --no-gui -o /home/g/Films --nzb "${nzb[1]}"      # make download
IFS=$'\x20'$'\x09'$'\x0A'$'\x0D'      # reset default

Pretty much if I watch a movie, I download one, which minimizes the
amount of HD I must devote to movies.  Otherwise they eat up the HD at
a fantastic rate.  And its virtually all done with bash internals,
which I think will be more efficient than calling a separate app like
head (though its no big deal either way).

_______________________________________________
Pan-users mailing list
Pan-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pan-users

Reply via email to