Re: [wmii] snap: 20060412

From: Bartosz Trudnowski <hrr888_AT_gmail.com>
Date: Wed, 12 Apr 2006 22:04:15 +0200

Using two(!) greps while using awk is, well, suboptimal ;).

*** wmiirc.org 2006-04-12 21:42:29.000000000 +0200
--- wmiirc 2006-04-12 21:43:15.000000000 +0200
***************
*** 133,135 ****
          $MODKEY-t)
! xwrite /view/ctl view "`wmiir read /view | awk '{print $10}' |
grep -v 'sel' | grep -v 'ctl' | wmiimenu`" &;;
          $MODKEY-[0-9])
--- 133,135 ----
          $MODKEY-t)
! xwrite /view/ctl view "`wmiir read /view | awk
'!/ctl|sel/{print $10}' | wmiimenu`" &;;
          $MODKEY-[0-9])

Hrr
Received on Wed Apr 12 2006 - 22:04:17 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:02:35 UTC