]> git.nbdom.net Git - nb.git/commitdiff
hl
authorNicolas Boisselier <nicolas.boisselier@semantico.com>
Thu, 1 Sep 2016 16:12:38 +0000 (17:12 +0100)
committerNicolas Boisselier <nicolas.boisselier@semantico.com>
Thu, 1 Sep 2016 16:12:38 +0000 (17:12 +0100)
etc/profile.d/functions

index c742d943f50a80e7920d12530af8d03c4d87ef21..2e94ff093c013cf96b231ac4221977d2d3194297 100644 (file)
@@ -183,7 +183,7 @@ json2perl() {
 #################################################################################
 hl(){ 
   #cat | grep --color=always -E "(^|($@))"
-  perl -MTerm::ANSIColor -pe '$e=qq|'$@'|;$e=~s,/,\\/,g; s/($e)/color("red").$1.color("reset")/ge'
+  perl -MTerm::ANSIColor -pe '$e=qq@'$@'@;$e=~s,/,\\/,g; s/($e)/color("red").$1.color("reset")/ge'
 }
 
 ls_tree() {