RE: A bash scripting question

2012-06-21 Thread dteske
> -Original Message- > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- > questi...@freebsd.org] On Behalf Of dte...@freebsd.org > Sent: Thursday, June 21, 2012 12:57 PM > To: 'Odhiambo Washington' > Cc: 'questions' &g

RE: A bash scripting question

2012-06-21 Thread dteske
> -Original Message- > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- > questi...@freebsd.org] On Behalf Of Devin Teske > Sent: Thursday, June 21, 2012 9:24 AM > To: Odhiambo Washington > Cc: questions > Subject: Re: A bash scripting question >

Re: A bash scripting question

2012-06-21 Thread Julian H. Stacey
CyberLeo Kitsana wrote Odhiambo Washington: > By the way, what's gammu, /usr/ports/comms/gammu presumably ( for mobile phone connection ) > and why is it in /usr/bin ? Pass. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below not above

Re: A bash scripting question

2012-06-21 Thread CyberLeo Kitsana
On 06/21/2012 08:40 AM, Odhiambo Washington wrote: > How Can I simplify/perfect the following script, so that I read _ALL_ the > lines in the file and act on the content as shown below, so that I do not > have to specifiy an action per line? > > This below is doing exactly what i need BUT reading

Re: A bash scripting question

2012-06-21 Thread Devin Teske
On Jun 21, 2012, at 6:40 AM, Odhiambo Washington wrote: > How Can I simplify/perfect the following script, so that I read _ALL_ the > lines in the file and act on the content as shown below, so that I do not > have to specifiy an action per line? > > This below is doing exactly what i need BUT r

A bash scripting question

2012-06-21 Thread Odhiambo Washington
How Can I simplify/perfect the following script, so that I read _ALL_ the lines in the file and act on the content as shown below, so that I do not have to specifiy an action per line? This below is doing exactly what i need BUT reading one line at a time untill the 10th line, if i want more i add