Category : C Source Code
Archive   : C_STRING.ZIP
Filename : SHAR.SH

 
Output of file : SHAR.SH contained in archive : C_STRING.ZIP

/*f File : shar.arc

#!/bin/sh
append=0
if test $1 = -a
then
append=1
shift
fi
verbose=0
if test $1 = -v
then
verbose=1
shift
fi
sharchive=sharchive
if test $1 = -o
then
sharchive=$2
shift; shift
fi
if test $# = 0
then
echo "Usage: shar [-a] [-v] [-o sharchive] file..."
exit
fi
if test $append = 0
then
echo "#!/bin/sh" >$sharchive
fi
for file in $*
do
if test "$file" != "$sharchive"
then
if test $verbose = 1
then
echo archiving $file
fi
echo "cat >$file <<'------ EOF ------'" >>$sharchive
cat $file >>$sharchive
echo "------ EOF ------" >>$sharchive
echo "ls -l $file" >>$sharchive
fi
done
chmod +x $sharchive
*/



  3 Responses to “Category : C Source Code
Archive   : C_STRING.ZIP
Filename : SHAR.SH

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/