[plug] bash script program help

Jon Miller jlmiller at mmtnetworks.com.au
Wed Jan 11 09:26:05 WST 2006


That would be good but all I have is the pseudo code in plain english and my diagram.  I have not laid down the coding yet only bits that I'm testing on CLI.  The first part is to read in the file (which I just finished generating).  Now I'm googling to find out how to read in a file and do file size comparisons.

Jon

>>> tomasz_g at arach.net.au 8:54:50 am 11/01/2006 >>>
Quoting Jon  Miller <jlmiller at mmtnetworks.com.au>:

> I could use some help in creating a program for a task that I need to do.
> I would like to know if there is a function in bash scripting or that can be
> used in a bash script that can determine the size of a file.
> What I need to do is to compare the file size of "A" against file "B", not
> sure if this possible in bash scripting.
> Also in the script cat A >> B doesn't seem to work.
> Need to read in the listing of a text file to get names from it, when finish
> with the various functions read the next name on the list and repeat the
> functions.
> 
> 
> Thanks
> 
> Jon L. Miller,  ASE, CNS, CLS, MCNE, CCNA
> Director/Sr Systems Consultant
> MMT Networks Pty Ltd
> http://www.mmtnetworks.com.au 
> Resellers for: Novell Gold Partner, Cisco Partner, Peopletelecom, Westnet,
> Sophos Anti-Virus, 
> 
> "I don't know the key to success, but the key to failure
>  is trying to please everybody." -Bill Cosby
> 



This doesn't sound too difficult (unless I'm overlooking something). Why don't
you send us what you have so far so we can see where things are going awry for
you? =)

Tomasz
_______________________________________________
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