#!/usr/bin/perl ($a,$b)=@ARGV;($c,$d)=split/[^\d]/,$a;if(!-f$b){die"$b $!\n";}else{ope +n (F,$b)||die"$b $!\n";seek(F,$c,0);$f=0;$e=$d-$c;while($f!=$e){$g=$e-$f +; if($g>=512){read(F,$h,512);$f+=512}else{read(F,$h,$g);$f+=$g}print$h;} +}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: this one's a file utility
by da w00t (Sexton) on May 11, 2000 at 12:00 UTC | |
by raflach (Pilgrim) on May 15, 2000 at 23:25 UTC | |
by da w00t (Sexton) on May 17, 2000 at 19:06 UTC |