Re: bash scripts conditionals and substrings

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: Kevin
Fecha:  
A: PLUG-DISCUSS
Asunto: Re: bash scripts conditionals and substrings
On Mon, 2005-02-28 at 23:09 -0700, Craig White wrote:
> and the stupid sucker is gagging on the "*" in the $infile - it has
> nothing to do with the conditionals whatsoever
>
> Evidently when it assigns the line "**** START OF ..." it actually tries
> to execute the first 4 files it finds in the directory - $#!%


Yep, I see that too. If I remove the asterisks from my $infile it works
fine. Since I am on my third glass of wine, a horrible hack is starting
to sound good. ;-) Can you pass the $infile through sed first and swap
the asterisks with some other character? There must be a slicker way to
do this, but I'm out of creative fuel tonight. I'll try to poke at it
some more tomorrow.

...Kevin





---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss