Chris G Haravata wrote:
> 
> > >
> > > problem is:  is there a command to use which will read each line of
> > > the file and put the contents of that line in a variable?
> >
> > #!/bin/bash
> > for SOMEVAR in `cat somefile.txt`; do echo $SOMEVAR; done
>                  ^
>                      |
> what is this? tilde or apostrophe?

It's a backtick, not an apostrophe. It's on the same key as the tilde, I
think (not sure...I use a non-standard keyboard). It indicates the shell
should evaluate the commands between the backticks first.

Brian
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to