[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DOS/vfat unerase



On Mon, Jan 12, 2004 at 11:20:21PM -0600, Steven Pritchard wrote:
> perl -e \
>  '$/="ffd8";while (<>){open(JPG,">".++$n.".jpg") or die "$!"; print JPG $/.$_;}'

Urk.  Of course, that should be $/="\xff\xd8".

Damn, and I had it all on one line too.  :-)

perl -e \
'$/="\xff\xd8";while(<>){open JPG,">".++$n.".jpg" or die "$!";print JPG $/.$_;}'

That might work...  ;-)

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)398-7360             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.