Hmm, thanks Miark, but I'd like the script to be entirely bash(1) compatible
since I don't know how standard Perl/Python/anything else are between !=
Linux/Un1x flavours. Besides I'm just a bash apprentice, learning either
Perl or Python shall be my next step.
--Jeferson L. Zacco aka Wooky
[EMAIL PROTECTED]
Linux registered user #221896
-
Computers are used to solve problems that wouldn't exist if computers
weren't invented in the first place.
-Mensagem Original-
De: Miark [EMAIL PROTECTED]
Para: Jeferson Lopes Zacco [EMAIL PROTECTED]
Enviada em: quinta-feira, 12 de julho de 2001 03:15
Assunto: Re: [newbie] more help with script -converting an string to integer
Clue: Use Perl ;-)
Perl will use a string as an integer without converting it.
Cheers,
Miark
I need more help with my pet script. Apparently bash lacks
any type
converting commands, and I need to convert a variable that
stores the line
number of a certain file -which was created with wc-l
file -
but I can't. I tried gawk but the bash script seems to
reconvert the integer
when passed by gawk. Any clues?
--Jeferson L. Zacco aka Wooky
[EMAIL PROTECTED]
Linux registered user #221896
-
Computers are used to solve problems that wouldn't exist
if computers
weren't invented in the first place.