Xref: utzoo news.software.b:3451 comp.unix.i386:1170 Path: utzoo!utstat!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!samsung!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: news.software.b,comp.unix.i386 Subject: Re: date: bad conversion Message-ID: <1989Nov12.182607.9867@virtech.uucp> Date: 12 Nov 89 18:26:07 GMT References: <452@abel.UUCP> Organization: Virtual Technologies Inc. Lines: 21 In article <452@abel.UUCP>, jma@abel.UUCP (Jeff Abrahamson) writes: > > I have been having news articles come in and put in *files* > with bad dates. That is, I can do an "ls -l nnnn" and find out how long > they've been here, but if I try to do a "touch nnnn", I get the > message "date: bad conversion". This is the file! (Needless to say, > I have some expire problems, too.) The problem with touch is that the first argument, if numeric, is interpreted to be the date/time to set the file to. In your case you want to set a numeric file to the current date. This can be accomplished by the following: touch ./nnnn -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+