Removed unnecessary use of 'grep -P' per #39

This commit is contained in:
Ryan Delaney 2015-07-29 17:46:04 -07:00
parent 43b60c66a8
commit 1933106caa
1 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,10 @@
#
# Functions {{{1
lscolors_buildsuite_print_extensions() {
sed -r -e '/^[ ]+#/d; /^[^\.\*]/d; /^$/d; s/^([\.\*][^ ]+).*/\1/' ../LS_COLORS
}
verbose() {
if [[ "$verbose" = "1" ]]; then
echo "$1" >&2
@ -121,6 +125,7 @@ while read line; do
touch ./DIRECTORY/"$line"
fi
fi
done < <(sed -r -e '/^[ ]+#/d; /^[^\.\*]/d; /^$/d' ../LS_COLORS | grep -Po '^[\.\*]([A-z0-9]+)' )
done < <( lscolors_buildsuite_print_extensions )
# vim: ft=sh foldmethod=marker: