Re: reading the first colums of text file

2007-02-03 Thread Paul Jarc
"Brian J. Murrell" <[EMAIL PROTECTED]> wrote: > < <(cat $file) http://partmaps.org/era/unix/award.html paul ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: reading the first colums of text file

2007-02-03 Thread Brian J. Murrell
On Sat, 2007-02-03 at 10:59 -0700, Bob Proulx wrote: > > echo one two three four five six seven | awk '{print$2,$NF}' > two seven That one always drives me nuts. Why fork/exec for such a heavy process for something bash can do itself: cat $file | while read column1 rest; do echo $column

Re: reading the first colums of text file

2007-02-03 Thread Bob Proulx
flowdimow wrote: > I have a text file (a table) and I want to read it and output only a > defined number of colums. Does anybody know how to do this? Depending on if the data is by character column or by whitespace separated field I would use either cut or awk. echo abcdefghijklmnopqrstuvwxyz

Re: readline: edit (mode:vi) means eol unreachable

2007-02-03 Thread Thomas Dickey
Hugh Sasse <[EMAIL PROTECTED]> wrote: > I see that a terminfo entry for PuTTY is on the wishlist. So meanwhile > I've asked them to re-examine this. On PuTTY developer's wishlist, I assume. ncurses has had a "putty" terminfo for a few years (iirc, the example given on PuTTY's website has some

bash and bashbug won't install...

2007-02-03 Thread John Wyman
Hello, I ran make and got an error, and make bashbug gets the same error as follows: please send mail to bug-bash@gnu.org with the following information: * the version number and release status of Bash (e.g., 2.05a-release) release 3.2 - downloaded on 1/30/07 * the machine and

reading the first colums of text file

2007-02-03 Thread flowdimow
Hello people, I have a text file (a table) and I want to read it and output only a defined number of colums. Does anybody know how to do this? Greetings, Florian ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-b