Operating System - HP-UX
1832840 Members
2899 Online
110047 Solutions
New Discussion

Re: How to open awk file ?

 
SOLVED
Go to solution
Frank Li
Trusted Contributor

How to open awk file ?

Hi,

How could I open a awk file , when I open it with vi , it can't been discerned .

****************************************
$ file cpPack1.jar
cpPack1.jar: awk program text

$ vi cpPack1.jar
( In the vi edit ,something like ..)

v$%#netscape/plugin/composer/SmallCaps/PK^C^D
?6%??J%^M%^M2netscape/plugin/composer/SmallCaps/SmallCaps.class????^C-?^Hv^H?^H^H^Hr^H^H^H?^H?^H{^G?
^G^G^G?^G^G^G?^G^G^G^G?^G}^G?^Gq^Gk
^KK
^KQ
^TL
^L_
^ME
^TG
.................
*******************************************************************************8

thanks
Frank.
Hi Friend
3 REPLIES 3
Thierry Poels_1
Honored Contributor
Solution

Re: How to open awk file ?

hi,
this is NOT an awk file.
The "file" command <<>> to define the file type; but there is no guarantee that the answer is correct.
.jar sounds like Java?!
regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Vincenzo Restuccia
Honored Contributor

Re: How to open awk file ?

Try with strings.
Roberto Gallis
Regular Advisor

Re: How to open awk file ?

Hi,
.jar files are java archives, built by jar (usage like tar). You need the program jar. You can find it with java 1.2 or java 1.3

So try

jar tvf file.jar

to view content of file.jar

jar xvf file.jar
to extract files

Regards
Roberto