shar(1) User Commands shar(1) (NAME) shar - (shell archive) (SYNOPSIS) shar [-flags] [-flag [value]] [--option-name[[=| ]value]] [...] file . . (DESCRIPTION) shar << >> ( shar) () . /bin/sh . -o . shar <<>> shar . (--vanilla-operation) tar . file . --intermix-type file . uuencode . mime . uuencode base64 . (OPTIONS) (Specifying compression) -p, --intermix-type . : vanilla-operation. (positional). . . -C program, --compactor=program (compactor). . : vanilla-operation. gzip bzip2 compress --gzip. . xz . xz -C xz --compactor=xz . <> . . uuencode uudecode . compress . -g level, --level-of-compression=level LEVEL . . level : 1 9 level : 9 . 9 . gzip bzip2 xz compress. -j, --bzip2 bzip2 uuencode . . bzip2 uuencode . uudecode bzip2 . : -z, --gzip gzip uuencode . . gzip uuencode . uudecode gzip . : -Z, --compress compress uuencode . . compress uuencode . uudecode compress . : --level-for-gzip --level-of-compression . : -b bits, --bits-per-code=bits bits ( ) compress. bits : 12 compress . : .SS " " shar uuencode . . . / . -M, --mixed-uuencode uuencode . mixed-uuencode . . uuencode . shar . : ASCII BS () HT ( ) LF ( ) FF () . (set) . <> . ( > .) LF ( ) . . LF ( ) . -B, --uuencode . mixed- uuencode . uuencode . . uudecode . . -T, --text-files . mixed- uuencode . ASCII . FTP SSH/SCP . -o prefix, --output-prefix=prefix PREFIX.nn. prefix.01 prefix.nn . --whole-size- limit --split-size-limit . prefix % prefix sprintf . prefix % .%02d . -l size, --whole-size-limit=size size. whole-size-limit . : output- prefix. . size : 8 1023 8192 4194304 size . size . k K m M . . 4M () . split-size-limit shar . -L size, --split-size-limit=size size. whole-size-limit . : output- prefix. . size : 8 1023 8192 4194304 size . --whole-size- limit . . () unshar ( split archive). : unshar. -I file, --input-file-list=file . file . . . find . . --intermix-type . : { echo --compact xz find . -type f -print | sort } | shar -S -p -L50K -o /somewhere/big -S, --stdin-file-list . (no-op). --input-file-list=- . : .SS " shar" -n name, --archive-name=name name . shar. --net-headers . -s who@where, --submitter=who@where . shar . . -a, --net-headers Submitted-by: Archive-name:. : archive-name. : Submitted-by: who@@where Archive-name: name/part## who@@where --submitter . name --archive-name . (/) /part## . -n xyzzy : xyzzy/part01 xyzzy/part02 -n xyzzy/patch : xyzzy/patch01 xyzzy/patch02 -n xyzzy/patch01. : xyzzy/patch01.01 xyzzy/patch01.02 -c, --cut-mark shar . 'Cut here' . -t, --translate . . LANG shar . . LANG . --no-character-count "wc -c" . (unpack) 'wc -c' . . -D, --no-md5-digest md5sum . md5sum . . -F, --force-prefix . . --uuencode . -d delim, --here-delimiter=delim delim . delim : SHAR_EOF DELIM shar SHAR_EOF. shar . (underscore) . shar -V, --vanilla-operation shar . shar (vanilla) echo test sed . (--mixed-uuencode) (--text-files) . . -P, --no-piping (pipe) . shar (pipes) . . -x, --no-check-existing . . --query-user . --cut-mark . sh shar-archive-file -c -X, --query-user . : vanilla-operation. . shar . shar unshar (--vanilla-operation) . . -X Usenet . unshar /bin/sh /bin/sh . shar /dev/tty unshar /bin/sh . (vanilla) /dev/tty . -m, --no-timestamp . 'touch' . "make" . . -Q, --quiet-unshar (verbose) unshar. (Verbose OFF). . -f, --basename . . shar . shar ..SS " (Internationalization options)" --no-i18n . . shar ( LANG/LC_MESSAGES ) . . --print-text-domain-dir shar. shar . / (User feedback/entertainment) -q, --quiet . . --silent --quiet . -h, --help . -!, --more-help (pager). -R [cfgfile], --save-opts [=cfgfile] cfgfile. (OPTION PRESETS) . . -r cfgfile, --load-opts=cfgfile, --no-load-opts cfgfile. no-load-opts /rc/ini . --no-load-opts . -v [{v|c|n --version [{v|c|n}]}] . `v' . `c' `n' . (OPTION PRESETS) not presettable () ("RC" ".INI") . "$HOME/.sharrc" . (WARNINGS) . shar . shar . shar . () shar . shar . . --query-user shar unshar . . query-user . . --no-timestamp --force-prefix . ~/.sharrc . (FILES) (OPTION PRESETS) . (EXAMPLES) C . .c .h . .arc uuencode arc.sh.01 . . shar *.c > cprog.shar shar -Q *.[ch] > cprog.shar shar -B -l28 -oarc.sh *.arc shar -f /lcl/src/u*.c > u.sh (EXIT STATUS) : 0 (EXIT_SUCCESS) . 1 (EXIT_OPTION_ERROR) . 2 (EXIT_FILE_NOT_FOUND) . 3 (EXIT_CANNOT_OPENDIR) / . 4 (EXIT_FAILED) / shar. 63 (EXIT_BUG) shar . . 66 (EX_NOINPUT) . 70 (EX_SOFTWARE) libopts . autogen-users@lists.sourceforge.net . . unshar(1) (AUTHORS) shar unshar . . THANKS sharutils . (COPYRIGHT) (C) 1994-2015 Free Software Foundation, Inc. . << >> (GNU General Public License) . (BUGS) sharutils . . : bug-gnu-utils@gnu.org (NOTES) AutoGen shar . GNU sharutils (4.15.2) 30 May 2015 shar(1)