home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- export f; f=_;
- # System V `echo' strips \s, but doesn't recognize -n;
- # bsd `echo' does the opposite. Figure out which one we have.
- echo -n >_temp_
- if ( test -s _temp_ ) then
- # -n wasn't recognized, ergo System V.
- export q; q=\\\\;
- else
- # -n was recognized, ergo bsd.
- export q; q=\\;
- fi
- rm -f _temp_
- for e in $*
- do
- if ( test ${f} = _ )
- then export f; f=${e}; rm -f ${f}; touch ${f};
- else echo ${e} >>${f}
- fi
- done
-