File Truncation, urgent question

Rick Silverstein ricks at ncrcae.Columbia.NCR.COM
Tue Jun 12 02:44:43 AEST 1990


In article <3 at edvvie.at> fozzy at edvvie.at (Fozzy C. Dressel) writes:
>Does anybody know a kernel parameter for truncating file which are
>longer than 14 characters.E.g.
>touch abcdefghijklmnopqrstu will not longer say 'could not create'
>truncate it automaticly to 14 character
>I got this problem on SCO-UNIX 3.2/386, using software, which was
>developed under INTERACTIV/386.

If you are just concerned with the touch utility, this can be done in
software.  First copy touch to touch.real.  Then replace touch with the
following shell script:

for i in $*
do
	touch.real `echo $i | cut -c1-14`
done



More information about the Comp.unix.questions mailing list