Re: bash programming..

2000-08-01 Thread Edward S. Marshall
On Mon, 31 Jul 2000, Mike A. Harris wrote: > echo -${zz%%*}:${zz##* } [...] > confusing. I tried replacing the hard TAB character with "\t", > "\011", all to no avail. Any other idea? Could you set a variable to be a tab character (ie. ${TAB} ;-), then substitute it in here? Just a thou

Re: bash programming..

2000-08-01 Thread noltie
On Tue, Aug 01, 2000 at 09:03:53AM +0800, John Summerfield wrote: > > > > It's not a perch! For bash it's a bass. :-) > > > > Fred > > There are lots of Perch; Macquarrie p, Golden p, Silver p, Nile p, Murray Cod > (surely the biggest). And bass. > > > There are different bass too; we have s

Re: bash programming..

2000-08-01 Thread John Summerfield
> On Tue, 1 Aug 2000, John Summerfield wrote: > > >> Any ideas? I'm using the following right now: > > > >You can do it in bash-2. However, I really think sed will prove faster. > > Hmm.. Well, I'd rather stick to bash/sed than bash2. If it isn't > possible with bash alone, then I'll do that.

Re: bash programming..

2000-07-31 Thread John Summerfield
> On Tue, Aug 01, 2000 at 04:44:52AM +0800, John Summerfield wrote: > > > > > > Any ideas? I'm using the following right now: > > > > You can do it in bash-2. However, I really think sed will prove faster. > > > > For advanced bashing, I recommend you get a fishy (looks to me like some ki > nd

Re: bash programming..

2000-07-31 Thread noltie
On Mon, Jul 31, 2000 at 11:58:46PM -0400, Mike A. Harris wrote: > On Mon, 31 Jul 2000 [EMAIL PROTECTED] wrote: > > The big space is a literal tab character that I entered by > pressing CTRL-V TAB. When I use this, it works > perfectly. However, such code is very unreadable and > confusing. I t

Re: bash programming..

2000-07-31 Thread Mike A. Harris
On Mon, 31 Jul 2000 [EMAIL PROTECTED] wrote: >On Mon, Jul 31, 2000 at 04:10:43PM -0400, Mike A. Harris wrote: >> Is there an easy way using bash INTERNALS to do the following: >> >> Read in a file containing two numbers on one line separated by >> space, and replace the whitespace between them w

Re: bash programming..

2000-07-31 Thread Mike A. Harris
On Tue, 1 Aug 2000, John Summerfield wrote: >> Any ideas? I'm using the following right now: > >You can do it in bash-2. However, I really think sed will prove faster. Hmm.. Well, I'd rather stick to bash/sed than bash2. If it isn't possible with bash alone, then I'll do that. It is possible

Re: bash programming..

2000-07-31 Thread noltie
On Mon, Jul 31, 2000 at 04:10:43PM -0400, Mike A. Harris wrote: > Is there an easy way using bash INTERNALS to do the following: > > Read in a file containing two numbers on one line separated by > space, and replace the whitespace between them with a ":"? > > I'm trying to optimize some stuff i

Re: bash programming..

2000-07-31 Thread noltie
On Tue, Aug 01, 2000 at 04:44:52AM +0800, John Summerfield wrote: > > > > Any ideas? I'm using the following right now: > > You can do it in bash-2. However, I really think sed will prove faster. > > For advanced bashing, I recommend you get a fishy (looks to me like some kind > of perch) boo

Re: bash programming..

2000-07-31 Thread John Summerfield
> Is there an easy way using bash INTERNALS to do the following: > > Read in a file containing two numbers on one line separated by > space, and replace the whitespace between them with a ":"? > > I'm trying to optimize some stuff in a script and trying to get > rid of awk/sed/perl calls that ar