[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Read command field seperators in Bash



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 is.

    John Salmon
salmonjj@comcast.net


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 yourself.


On my system, if I try 'man read' I get "No manual entry for read.' Am I
missing something?


Yes you are. Most programs come with a Manual (man ) page. so ,bash, being a program comes with a manual page. To read the bash manual page you enter the following command.

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.

To learn how to use the man progran see the man manual(man) page.

Might be a good idea to install the debian-reference package to get even more information how to do things in Debian.

Wayne

--
Give a man a fish, feed him for a day
Teach a man to fish, feed him for life


Reply to: