Permalink
Browse files

begrudge a duplicated line

  • Loading branch information...
1 parent 8621b3c commit af890aea593dcbb184c226788d2b185a56e06c47 @rupa committed Aug 3, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 z.sh
View
3 z.sh
@@ -77,11 +77,10 @@ _z() {
if( system("test -d \"" $1 "\"") ) next
if( nocase ) {
for( i in fnd ) tolower($1) !~ tolower(fnd[i]) && $1 = ""
- if( $1 ) print $1
} else {
for( i in fnd ) $1 !~ fnd[i] && $1 = ""
- if( $1 ) print $1
}
+ if( $1 ) print $1
}
' "$datafile" 2>/dev/null

0 comments on commit af890ae

Please sign in to comment.