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]
- [plug] readiing a line from a file and putting that i... Chris G Haravata
- Re: [plug] readiing a line from a file and putti... Mike Blancas
- RE: [plug] readiing a line from a file and p... Chris G Haravata
- Re: [plug] readiing a line from a file a... eric pareja
- RE: [plug] readiing a line from a fi... Chris G Haravata
- Re: [plug] readiing a line from a file and putti... Brian Baquiran
- RE: [plug] readiing a line from a file and p... Chris G Haravata
- RE: [plug] readiing a line from a file a... Mike Blancas
- Re: [plug] readiing a line from a file a... Brian Baquiran
- Re: [plug] readiing a line from a file a... Raymund dos Remedios
- Re: [plug] readiing a line from a file a... Juan Miguel Cacho
- Re: [plug] readiing a line from a file and putti... Ian C. Sison
- RE: [plug] readiing a line from a file and p... Chris G Haravata
- Re: [plug] readiing a line from a file a... Raymund dos Remedios
- Re: [plug] readiing a line from a file and putti... Federico Sevilla III
- Re: [plug] readiing a line from a file and p... Mike Maravillo
- RE: [plug] readiing a line from a file and putti... Ronneil Camara
