Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 1997 14:43:33 +0200 (MET DST)
From:      Zahemszky Gabor <zgabor@CoDe.hu>
To:        freebsd-questions@freebsd.org (FreeBSD questions)
Cc:        kuku@gilberto.physik.rwth-aachen.de
Subject:   Re: SCO tar formats - reading
Message-ID:  <199704041243.OAA01189@CoDe.hu>
In-Reply-To: <199703301108.NAA08944@gilberto.physik.rwth-aachen.de> from Christoph Kukulies at "Mar 30, 97 01:08:25 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> I have some floppies containing software (for the Jdyx graphics libarary,
> btw - kind of SVGALIB) and I would like to read it into my
> FreeBSD system but having difficulties with this. ALl I get is 
> skipping tar header....
> 
> dd if=/dev/rfd0a  | head :
> 
> 
> 0707070000010024670407000001440000010000100000000461715776200000200000000000.0707070000010024660407550001440000010000020000000463323247200000400000000000src0707070000010023551006440001440000010000030000000460235231000001200000000334src/asm.s       .file   "a.c"

It's interesting, but not a tar header.  It's nothing, but a ``cpio'' header
- as of my mind, and /etc/magic says.  So try cpio, or pax to read it.

Gabor
--
#!/bin/ksh
trap 'rm -f /tmp/$$.$$' EXIT HUP INT QUIT TERM&&print '21N16I25C25E30, 40M30E33E25T15U!'>/tmp/$$.$$&&IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ '&&set -A X $(</tmp/$$.$$)&&IFS=' 0123456789 '&&set -A Y $(</tmp/$$.$$);IFS=' '&&set -- "${X[@]}"&&for i do [[ $i = ? ]]&&print $i&&continue;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i&&print -n ${i#???}&&[[ "$j" = ??? ]]&&print -n "${j#??} "&&unset j;typeset +i i;done;set -- "${Y[@]}"&&set -A X&&for i do [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;set -A X "${X[@]}" $i&&typeset +l i;done&&set -- ${X[@]}&&print $*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704041243.OAA01189>