From: Nicolas Boisselier Date: Tue, 10 Jan 2017 00:04:38 +0000 (+0000) Subject: add uncomment X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=a3d8ba58d95118788aff0b022204b1d3a92db6a1;p=nb.git add uncomment --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 00c6a7cf..a9dc8227 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -842,3 +842,8 @@ which_cache() { _which_cache="$_which_cache|$1=0" return 1 } + +uncomment() { + grep -E '^\s*\w' $@ + #grep -Ev '^\s*(["\'/\#\;-])' +}