Re: reading the first colums of text file
Brian J. Murrell wrote: > 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: In the end the real answer is that to me it's simpler, less typing, solves the problem but mostly because *I like awk*. :-) BTW... Awk is used so much on a system that most likely it is already in ram and is probably not as heavy of a system impact as you imply. > Probably a dozen other ways to do it too. Yes. Bob ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Re: readline: edit (mode:vi) means eol unreachable
Hugh Sasse wrote: > On Thu, 1 Feb 2007, Chet Ramey wrote: > If I invoke an xterm from my session, using it with Exceed > version 8, I get a different kind of bug, namely that moving left > with the cursor key takes me out of insert mode and removes the > rightmost character from the display. This isn't a bug. It just means that the termcap/terminfo entry doesn't provide the right entries that allow the key sequences output by the arrow keys to be bound to the motion commands you want. You can do this yourself; the easiest way to find out the key sequence output by an arrow key is to use `cat -v'. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://cnswww.cns.cwru.edu/~chet/ ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Re: reading the first colums of text file
On Sat, 2007-02-03 at 23:30 -0500, Paul Jarc wrote: > "Brian J. Murrell" <[EMAIL PROTECTED]> wrote: > > < <(cat $file) > > http://partmaps.org/era/unix/award.html LOL. Too right. I am just so used to using process redirection to solve the old "but my variables don't maintain their value after my " | while read $var; do string="$string $var"; done" problem that I immediately think of process redirection. Of course instead of "<(cat $file)" I could have just used "$file". What would be funny is if bash pointed one to the above URL when it detected one doing something silly like that. b. -- My other computer is your Microsoft Windows server. Brian J. Murrell signature.asc Description: This is a digitally signed message part ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash
Re: reading the first colums of text file
On Sun, 2007-02-04 at 11:42 -0700, Bob Proulx wrote: > > BTW... Awk is used so much on a system that most likely it is already > in ram and is probably not as heavy of a system impact as you imply. I don't think I was even considering the disk read time to load it. I think I was purely considering the cost of fork/exec. In any case, dead horses and all. b. -- My other computer is your Microsoft Windows server. Brian J. Murrell signature.asc Description: This is a digitally signed message part ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash