Message Board -  Archive

[ Login ] [ Create Account ]
[ Board List ] [ View Board ] [ Post Reply ]
  Author  Subject: Re: Shell scripts
Archive  

Posted on 11-02-2003 01:48 a.m. ET  reply

Original Poster: Mark Krentel

> I have an old laptop that I use in the truck to help me
> learn linux. I'm studying "Rute". In one of the examples
> I used a script eg: [echo 'cat <file>'] and it works funny.

That's what echo does, it prints its input, all run together with one
space between each word and no newlines. Compare "cat /etc/fstab"
with "echo `cat /etc/fstab`" and try "cd /usr/bin ; echo *".

Normally, you don't use echo and cat together like this. Echo prints
its input, whereas cat treats its input as a file name and prints the
contents of the file. Use one or the other, not both. In this case,
get rid of the echo.

P.S. Where's the home site for Rute? It looks like good Linux
documentation.

--Mark

< Previous 1 Next >

Site Contents