Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

shar(1) [minix man page]

SHAR(1) 						      General Commands Manual							   SHAR(1)

shar - shell archiver SYNOPSIS
shar file ... EXAMPLES
shar *.c >s # Collect C programs in shell archive sh <s # Extract files from a shell archive DESCRIPTION
The named files are collected together into a shell archive written onto standard output. The individual files can be extracted by redi- recting the shell archive into the shell. The advantage of shar over ar is that shar archives can be read on almost any UNIX system, whereas numerous, incompatible versions of ar are in widespread use. Extracting the files from a shell archive requires that sed be acces- sible. SEE ALSO
sh(1), unshar(1). SHAR(1)

Check Out this Related Man Page

UNSHAR(1)						      General Commands Manual							 UNSHAR(1)

unshar - unpack a shar file SYNOPSIS
unshar [ options ] [ file ... ] DESCRIPTION
Unshar scans mail messages looking for the start of a shell archive. It then passes the archive through a copy of the shell to unpack it. It will accept multiple files. If no files are given, standard input is used. OPTIONS
Options have a one letter version starting with - or a long version starting with --. The exception is --help and --version, which does not have a short version. --version Print the version number of the program on standard output, then immediately exits. --help Print a help summary on standard output, then immediately exits. -d DIRECTORY --directory=DIRECTORY Change directory to DIRECTORY before unpacking any files. -c --overwrite Passed as an option to the shar file. Many shell archive scripts (including those produced by `shar' 3.40 and newer) accepts a -c argument to indicate that existing files should be overwritten. -e --exit-0 This option exists mainly for people who collect many shell archives into a single mail folder. With this option, `unshar' isolates each different shell archive from the others which have been put in the same file, unpacking each in turn, from the beginning of the file towards its end. Its proper operation relies on the fact that many shar files are terminated by a `exit 0' at the beginning of a line. Option -e is internally equivalent to -E "exit 0". -E STRING --split-at=STRING This option works like -e, but it allows you to specify the string that separates archives if `exit 0' isn't appropriate. For example, noticing that most `.signatures' have a `--' on a line right before them, one can sometimes use `--split-at=--' for splitting shell archives which lack the `exit 0' line at end. The signature will then be skipped altogether with the headers of the following message. -f --force The same as -c. SEE ALSO
Any message from the shell may be displayed. AUTHORS
The shar and unshar programs is the collective work of many authors. Many people contributed by reporting problems, suggesting various improvements or submitting actual code. A list of these people is in the THANKS file in the sharutils distribution. September 10, 1995 UNSHAR(1)
Man Page

13 More Discussions You Might Find Interesting

1. Ubuntu

Red Hat Linux & Desktop Market Share

Hello Everyone! A simple question: Do you think that Red Hat Linux will be obtaining a MAJOR share of the desktop operating systems on personal computers in near future? 1. Yes 2. No 3.Not Sure Thanks JAM (13 Replies)
Discussion started by: Jawwad
13 Replies

2. Solaris

Intimate Shared Memory (ISM)

Dear all, Anyone could help to explain me about ISM? I use SunOS 5.10 and have 3 questions here: 1. Is it true that the ISM value will be set to TRUE by default on either global or container box of Solaris? 2. Is it true if the ISM is TRUE, then the swap to disk (virtual memory) won't work... (20 Replies)
Discussion started by: sprout009
20 Replies

3. Solaris

Problem with nfs sharing, permission denied for writing.

Hi I have a problem with NFS sharing on solaris 10, the problem simply with write permission, after do the following command, the folder still not writable from machine 2 : on machine 1 ( : share -F nfs -o rw /u01/portalrepository/ on machine 2 ( : mount -F nfs... (35 Replies)
Discussion started by: Al-Mothafar
35 Replies

4. Programming

Shared memory between two c program

i have to shared a variable between two different c programs with shared memory and i do these: int main() { int a=5,b=7; int buffer; int *point; int shmid; shmid=shmget(IPC_PRIVATE , sizeof(buffer),0666); point=(int *)shmat(shmid,NULL,0); point=a; ... (21 Replies)
Discussion started by: tafazzi87
21 Replies

5. Programming

Help building and using a shared object (x64)

Hello, I am not that experienced with Linux, and I am currently facing some issues. The application I'm working on uses hundreds of threads. To optimize the memory usage, I am putting all my data inside a shared object (so). The steps for this are as follows: 1. a C file (generated... (17 Replies)
Discussion started by: Maelstrom
17 Replies

6. What is on Your Mind?

Did You Buy any Facebook IPO Stock at $38 a share?

Big day for FB. Did anyone manage to buy any of the IPO stock before the bell? (17 Replies)
Discussion started by: Neo
17 Replies

7. Red Hat

NFS share and groups

I am having an issue with getting the proper group settings on NFS-shared directories. NFS server, NFServe, nfs-shares hundreds of project directories...running Solaris 10 latest patches/updates. SAS server, SAServe, statistical analysis server running on RedHat 7 with latest kernel/patches/etc.... (14 Replies)
Discussion started by: cjhilinski
14 Replies

8. Shell Programming and Scripting

The Start Of A Simple Audio Scope Shell Script...

This is a DEMO shell script to generate a simple graticule and plot inside it... Apologies for any typos... it is another building block along with my other two shell uploads recently to start a semi_serious project of an Terminal_AudioScope... The fist upload I posted recently was to show... (83 Replies)
Discussion started by: wisecracker
83 Replies

9. UNIX for Beginners Questions & Answers

General Purpose Date Script

There must be thousands of one-off solutions scattered around this forum. GNU Date is so handy because it's general but if they're asking they probably don't have it. We have some nice scripts but they tend to need dates formatted in a very particular way. This is a rough approximation which... (18 Replies)
Discussion started by: Corona688
18 Replies

10. HP-UX

Unable to mount shared folder from Linux server

Hi all, I have 3 servers, rx2600, rx2600, and rx2660. I have another x86 server running on Suse, and create a shared folder named /public From 1 of the rx2600 server I can mount that shared folder : intaqa:/>mount /bkup intaqa:/>cd /bkup But from 2 others server I... (29 Replies)
Discussion started by: rexmale
29 Replies

11. Ubuntu

Samba share on software raid1

Hello! i am having a ubuntu server with two empty disks and connected software raid1 to it. I am having /mnt/raid folder which i created to mount it. SO should i now make a share folder inside that or what? I ama bit confused when a raid is present. (27 Replies)
Discussion started by: tomislav91
27 Replies

12. Shell Programming and Scripting

Solaris 9 Home Directory, Two Machines Sharing a NAS

Good Morning, I have 2 Solaris 9 machines sharing a NAS, and need to have users to be able to log in from the 2nd machine and get to all of their files on the NAS that were created on the 1st machine. So far its working ok, but when users log in to the second machine, their user IDs show... (20 Replies)
Discussion started by: Stellaman1977
20 Replies

13. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies