On 11/08/2011 04:13 PM, Graham Lawrence wrote:
Date: Sun, 06 Nov 2011 20:15:54 -0600
Excerpted From: Ron Johnson<[email protected]>


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

Clever.

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


Ok.  Our goals are different so out techniques are different.

Pretty much if I watch a movie, I download one, which minimizes the
amount of HD I must devote to movies.

Disks are cheap.  (Well, they were before the Thai flooding.)

                                       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).


--
Vegetarians eat vegetables, Humanitarians frighten me.

_______________________________________________
Pan-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/pan-users

Reply via email to