Re: On the verge of suicide:tar & gunzip problems
From: Kevin Buhr (buhr_at_telus.net)
Date: 07/30/04
- Previous message: Marcelorenaomi_at_aol.com: "Re: bjc-4300 canon colour buble jet printer"
- In reply to: Vittorio: "Re: On the verge of suicide:tar & gunzip problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Vittorio <vdemart1@tin.it> Date: Fri, 30 Jul 2004 13:12:29 -0700
Vittorio <vdemart1@tin.it> writes:
>
>> zcat /mnt/backup-compaq/home.tar.gz |
>> perl -ne 'm,home/vic/, && do { ++$count[($l + length($`)) % 512] };
>> $l += length($_); END { for (0..511) { printf "%3d %5d\n", $_,
>> $count[$_] if $count[$_] } }' | sort -nr +1 | head -20
>
> For the time being I've pit aside tghe idea of suicide but the complex program
> you suggested (see above) doesn't work. I put it inside an executable file
> and try to execute but It invariably says
>
> cannot execute binary file
Well, for some weird reason, it looks like you've introduced a bunch
of 0xA0 characters at the beginning of each line in your version that
weren't in my original. Also, it isn't meant to be pasted as 4 lines
into a file but pasted as 1 single, very long line at a Bash command
prompt.
Anyway, let's try it a different way. I've put a Perl program here:
http://www3.telus.net/buhr/misc/find_offset.pl
You can save this and then run the following command at a shell
prompt:
zcat yourtar.gz | perl find_offset.pl home/vic/ | head -20
-- Kevin <buhr@telus.net -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Marcelorenaomi_at_aol.com: "Re: bjc-4300 canon colour buble jet printer"
- In reply to: Vittorio: "Re: On the verge of suicide:tar & gunzip problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]