Xref: utzoo comp.unix.wizards:22410 comp.unix.questions:22834 comp.unix.xenix:12000 Path: utzoo!attcan!uunet!cs.utexas.edu!wuarchive!emory!hubcap!ncrcae!ricks From: ricks@ncrcae.Columbia.NCR.COM (Rick Silverstein) Newsgroups: comp.unix.wizards,comp.unix.questions,comp.unix.xenix Subject: Re: File Truncation, urgent question Keywords: unix, sco, trunc Message-ID: <6217@ncrcae.Columbia.NCR.COM> Date: 11 Jun 90 16:44:43 GMT References: <3@edvvie.at> Reply-To: ricks@ncrcae.Columbia.NCR.COM (Rick Silverstein) Organization: NCR Corp., Engineering & Manufacturing - Columbia, SC Lines: 16 In article <3@edvvie.at> fozzy@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