On Sun, 2010-02-14 at 20:32 +0200, Teemu Likonen wrote:
> * 2010-02-14 10:04 (-0600), John Salmon wrote:
>
> > Is there a way to change the field seperators in Bash's read command
> > (Debian Lenny)?
>
> The answer has been given but here's an example script which uses
> "read":
>
> #!/bin/b
On Mon, 15 Feb 2010 10:36:41 -0500 (EST), Tony Baldwin wrote:
> I thought gawk (along with awk, sed, tr, etc.) was just part of
> regular old gnu bash tools and would be installed by default.
bash, mawk, and gawk are separate packages. bash and mawk are installed
by default, since they are requir
-- El dom 14-feb-10, Lisi escribió:
> De: Lisi
> Asunto: Re: Read command field seperators in Bash
> A: debian-user@lists.debian.org
> Fecha: domingo, 14 febrero, 2010, 6:37 pm
> On Sunday 14 February 2010 18:42:53
> Sven Joachim wrote:
> > > Mmm. But I have only ga
On Sunday 14 February 2010 18:42:53 Sven Joachim wrote:
> > Mmm. But I have only gawk, and installed neither. Nor any other awk.
> > It probably depends which set-up one asks for during installation.
>
> Well, mawk has been of priority 'required' for a very long time, so I
> guess you removed it
On Sunday 14 February 2010 19:03:00 Stephen Powell wrote:
> Lisi wrote:
> > Mmm. But I have only gawk, and installed neither. Nor any other awk.
> > It probably depends which set-up one asks for during installation.
>
> If I understand the output of your "aptitude search awk" command correctly,
On Sunday 14 February 2010 18:42:53 Sven Joachim wrote:
> > Mmm. But I have only gawk, and installed neither. Nor any other awk.
> > It probably depends which set-up one asks for during installation.
>
> Well, mawk has been of priority 'required' for a very long time, so I
> guess you removed it
* 2010-02-14 14:08 (-0500), Wayne wrote:
> man bash
>
> that brings up the bash man page and you can search through it for
> whatever you need to. As read is a bash command, it should be
> mentioned in the bash man page.
Yes, "read" is a Bash built-in command:
$ type read
read is a shell
--- El dom 14-feb-10, Wayne escribió:
> >>>
> >> Sure is. It's in the bash man page.
> Look for IFS.
> >>
> >> When in doubt, always try the man page.
> >>
> >>
> >> Wayne
>
> Putting back on the list where it belongs. Please
> "always" reply to the list so others can learn as well as
>
On 2010-02-14 20:03 +0100, Stephen Powell wrote:
>aptitude install mawk_ gawk
>
> would probably not work without some kind of override switches. It
> wouldn't like the request to purge a required package.
It would not complain, I have just tested it successfully in a chroot.
The safer way,
John Salmon wrote:
On Sun, 2010-02-14 at 11:23 -0500, Wayne wrote:
John Salmon wrote:
Is there a way to change the field seperators in Bash's read command
(Debian Lenny)? I could use gawk to do what I need but, since gawk isn't
installed in the Lenny distribution, I'de rather use something that
On Sun, 14 Feb 2010 13:42:53 -0500 (EST), Sven Joachim wrote:
> This is handled by the alternatives system, gawk has a higher priority
> than mawk so if you don't take any measures it will provide /usr/bin/awk.
> See update-alternatives(8).
Thanks for the explanation.
Lisi wrote:
> Mmm. But I ha
* 2010-02-14 10:04 (-0600), John Salmon wrote:
> Is there a way to change the field seperators in Bash's read command
> (Debian Lenny)?
The answer has been given but here's an example script which uses
"read":
#!/bin/bash
IFS=, read -a numbers < <(echo one,t w o,three)
printf '<%s>\n
On 2010-02-14 19:23 +0100, Lisi wrote:
> On Sunday 14 February 2010 18:11:25 Stephen Powell wrote:
>>
>> awk is a virtual package provided by both the real package mawk and the
>> real package gawk. On my Lenny system, mawk is installed, but gawk is not.
>> Most awk scripts will work fine with ma
On Sunday 14 February 2010 18:11:25 Stephen Powell wrote:
> On Sun, 14 Feb 2010 12:51:16 -0500 (EST), Lisi wrote:
> > On Sunday 14 February 2010 17:38:48 Paul E Condon wrote:
> >> On 20100214_100441, John Salmon wrote:
> >>> Is there a way to change the field seperators in Bash's read command
> >>>
On Sun, 14 Feb 2010 12:51:16 -0500 (EST), Lisi wrote:
> On Sunday 14 February 2010 17:38:48 Paul E Condon wrote:
>> On 20100214_100441, John Salmon wrote:
>>> Is there a way to change the field seperators in Bash's read command
>>> (Debian Lenny)? I could use gawk to do what I need but, since gawk
On Sunday 14 February 2010 17:38:48 Paul E Condon wrote:
> On 20100214_100441, John Salmon wrote:
> > Is there a way to change the field seperators in Bash's read command
> > (Debian Lenny)? I could use gawk to do what I need but, since gawk isn't
> > installed in the Lenny distribution, I'de rathe
On 20100214_100441, John Salmon wrote:
> Is there a way to change the field seperators in Bash's read command
> (Debian Lenny)? I could use gawk to do what I need but, since gawk isn't
> installed in the Lenny distribution, I'de rather use something that is.
>
> John Salmon
> salmo...@comcast.
John Salmon wrote:
Is there a way to change the field seperators in Bash's read command
(Debian Lenny)? I could use gawk to do what I need but, since gawk isn't
installed in the Lenny distribution, I'de rather use something that is.
John Salmon
salmo...@comcast.net
Sure is. It's in the b
On 2010-02-14 17:04 +0100, John Salmon wrote:
> Is there a way to change the field seperators in Bash's read command
> (Debian Lenny)?
Yes, see the IFS variable (look it up in the bash manpage).
> I could use gawk to do what I need but, since gawk isn't
> installed in the Lenny distribution, I'd
19 matches
Mail list logo