Re: trimming a file but got error?

From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 04/28/04


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 ***


Relevant Pages

  • OT: GRUB location on Dual-Boot with TWO hard drives
    ... switch to Linux. ... look at some beginners guide for "shell scripts". ... of hwinfo there are different other useful commands, ... You also should take a look at "common linux shortcuts" some are equal ...
    (Debian-User)
  • Re: Logitech mouse playing up?
    ... It's either a fault of the switch inside the mouse or the shell getting ... button often results in over-fatiguing the plastic hinge for it. ... my mouse and keyboard look pretty untouched ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: How to get pty slave tty driver signals?
    ... special terminal and hit keys that cause it to switch between mutliple ... switching sessions, but none of the session shells recognize any ... but do not produce signals being sent to the shell. ...
    (comp.os.linux.development.apps)
  • Re: How to implement Fast User Switing in a customized shell?
    ... thank you for your note about customizing a user shell. ... and the customer. ... There must be a way to initiate a user switch... ... application and no Windows XP, but our service staff should be able ...
    (microsoft.public.windowsxp.embedded)
  • Re: How to get pty slave tty driver signals?
    ... special terminal and hit keys that cause it to switch between mutliple ... switching sessions, but none of the session shells recognize any ... but do not produce signals being sent to the shell. ...
    (comp.os.linux.development.apps)