[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where is "append" command

On Sat, Jan 03, 2004 at 08:50:38AM +0800, Stephen Liu wrote:
> Colin Watson wrote:
> > You're missing a '>>', and as I said that isn't what you want in this
> > case anyway (since you probably don't want to make that the last line of
> > lilo.conf).
> # echo append="ide-scsi" >> /etc/lilo.conf
> '>>' (double) or '>' (single) ???

Double, just like I said.

> I just want to learn new command line.
> Usually I type
> # locate xxx > /tmp/output.txt
> to copy all output to /tmp/output.txt file

If you use >, the output from the command overwrites the file. If you
use >>, the output from the command is appended to the file. See the
REDIRECTION section in 'man bash' for more information.


Colin Watson                                  [cjwatson@flatline.org.uk]

Reply to: