in reply to Re^2: one-line split file sequence checker
in thread one-line split file sequence checker
perl -e 'for $c (sort {$a<=>$b} map(/.(\d+)$/, <*[0-9]>)){ ++$n == $c || print map("$_\n", $n...$c-1) ; $n=$c }'
Ah, that's getting closer to the line noise effect I was looking for, thanks ;=) Time to read up on that map command and why <> is globbing filenames in the current dir. I'm almost pleased to see there's no offered improvement to the basic idea. There's no way to get rid of that 'for' iterator, or the 'print'? -lane ? Any shorthand for sort {$a<=>$b}? Just wondering.
Ah, that's getting closer to the line noise effect I was looking for, thanks ;=) Time to read up on that map command and why <> is globbing filenames in the current dir. I'm almost pleased to see there's no offered improvement to the basic idea. There's no way to get rid of that 'for' iterator, or the 'print'? -lane ? Any shorthand for sort {$a<=>$b}? Just wondering.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: one-line split file sequence checker
by kyle (Abbot) on Jan 22, 2008 at 23:08 UTC | |
by jwkrahn (Abbot) on Jan 23, 2008 at 00:07 UTC | |
by wdef2 (Acolyte) on Jan 23, 2008 at 13:46 UTC |
In Section
Cool Uses for Perl