Re: Just another newbie bash shell question: script does not work



On 26 May 2006 06:55:14 -0700, bravegag wrote:
Hi all,

I have been already struggling for a while with this (sorry pals) crap
bash scripting which I can not make any other sense than it was made
purposely non intuitive and totally confusing but anyway ...

Well, I find your Operating system a piece of crap.


Maybe these will help
! bash script advanced documentation
http://tldp.org/LDP/abs/html/index.html
! bash script introduction to Linux documentation
http://tldp.org/LDP/intro-linux/html/index.html


I would like to read each line from an input file and display it.

The human mind tends to reduce everything to it's most complex form.

Here try this

_fn=$1
while read line
set -- $line
echo $1 $2
echo $line
done < $_fn
.



Relevant Pages

  • Re: How to write such kind of script?
    ... I try to code script to realize function which is described as after: ... set -- $(echo $line) ... bash script advanced documentation ... bash script introduction to Linux documentation ...
    (comp.unix.admin)
  • Re: Database Bash Scripting?
    ... >>written in bash script. ... to the psql client and a few echo statements. ... put whatever you want in the body of the HTML. ...
    (comp.os.linux.misc)
  • My Bash script is ucked up.. I really need help!!
    ... in spite of numerous bash script tutorials ... echo 'You must enter an option: ... lastMod lastChange ioblock << $ ... lastMod lastChange ioblock << THROW $ ...
    (comp.os.linux.misc)
  • My Bash script is ucked up.. I really need help!!
    ... in spite of numerous bash script tutorials ... echo 'You must enter an option: ... lastMod lastChange ioblock << $ ... lastMod lastChange ioblock << THROW $ ...
    (comp.unix.shell)
  • Re: Bash script via inetd = no joy
    ... I wrote a Bash script in Linux using 'read' and 'echo'. ... the Win2k telnet client and from the Linux telnet client. ...
    (comp.os.linux.networking)