Re: trimming a file but got error?
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 04/28/04
- Next message: joe durusau: "Re: trimming a file but got error?"
- Previous message: Dave Hinz: "Re: LOCAL NYC UNIGROUP FIELD TRIP MEETING UPDATE : 29-APR-2004: AIX at IBM"
- In reply to: yls177: "trimming a file but got error?"
- Next in thread: joe durusau: "Re: trimming a file but got error?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Apr 2004 10:34:29 -0400
In article <c06e4d68.0404272047.4a9d8b56@posting.google.com>,
yls177@hotmail.com (yls177) wrote:
> when i trim a file, i have this error "Invalid null command."
> i can do it with root, with shell ksh. but when i am switch to other
> user, i get the above error and that user shell is csh. the file
> belongs to the switch user.
Are you trying to use the command:
> filename
That is valid syntax in shells based on Bourne shell syntax, but it's
not valid in C shell. Use:
cat /dev/null > filename
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: joe durusau: "Re: trimming a file but got error?"
- Previous message: Dave Hinz: "Re: LOCAL NYC UNIGROUP FIELD TRIP MEETING UPDATE : 29-APR-2004: AIX at IBM"
- In reply to: yls177: "trimming a file but got error?"
- Next in thread: joe durusau: "Re: trimming a file but got error?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|