1753295 Members
6047 Online
108792 Solutions
New Discussion юеВ

unshar a file

 
SOLVED
Go to solution
chetana07
Frequent Advisor

unshar a file

Hello ,
How to unshar a shar file?
Thanks
5 REPLIES 5
john korterman
Honored Contributor
Solution

Re: unshar a file

Hi,

make a cd to the directory where you want to unshar the (patch)file and:

# sh filename

regards,
John K.
it would be nice if you always got a second chance
Yogeeraj_1
Honored Contributor

Re: unshar a file

hi,

see also "man shar"


..
The shar command bundles the named files and directories into a single distribution package suitable for mailing or moving. The files can contain any data, including executables. The resulting package, written to standard output, is a shell script file that can be edited (to add messages at the beginning, etc.).

To unpack package, use the sh command with the package name as an argument as follows:

sh package
...


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
vinuhcl
Advisor

Re: unshar a file

hai chetana,

copy your file which you want to unshar to a desired directory, and exicute the following comand;

# sh

After unsharing you will get the .depot file and txt file. The .depot file you can use for installation along with swinstall command.

Best wishes,

Vinu
Dennis Handly
Acclaimed Contributor

Re: unshar a file

>Vinu: copy your file which you want to unshar to a desired directory,

No need to copy, you can move. And in any case, you must be in the directory, unless absolute paths were used to create the shar file.
chetana07
Frequent Advisor

Re: unshar a file

Thanx a lot for the support