[plug] function error

Jon Miller jlmiller at mmtnetworks.com.au
Wed Jan 11 23:57:37 WST 2006


Answer to third item - Not a lot, I've been having a read through the advance bash scripting.  I've done programming in some C (about a few eons ago), but I usually steer clear of this as I do not have the time to get to involved.  But there are times when I need to knock out a quick script.

Jon

>>> troll at arach.net.au 10:46:28 pm 11/01/2006 >>>
On Wednesday 11 January 2006 22:50, Jon Miller wrote:
> No I want to be able to read in a file (which has over a 100 names in it, each on a separate line) do a series of commands against each name. So I thought if I can get the command to read in a line do the commands and when finished read I the next and perform the same commands until it reaches the end of the file.
> 
> JLM
First of all to use a variable outside of the function it must be globally defined.
Second do the processing within the loop
Thirdly, have you done any bash scripting before ??

-- 
regs MR E_T
_______________________
\                      \
  \   OOHH I hate TYPOS  \
    \                      \
      ~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
PLUG discussion list: plug at plug.org.au 
http://www.plug.org.au/mailman/listinfo/plug 
Committee e-mail: committee at plug.linux.org.au




More information about the plug mailing list