From f34679e1dd8b064d1b3b0afa635c83607168900a Mon Sep 17 00:00:00 2001 From: Rylee Fowler Date: Thu, 1 Oct 2015 08:26:41 -0500 Subject: [PATCH] fix --pricing to behave with the dirs `bin` and `website` --- bin/gnu-pricing | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gnu-pricing b/bin/gnu-pricing index fd6d1cf..00a2eb9 100755 --- a/bin/gnu-pricing +++ b/bin/gnu-pricing @@ -12,7 +12,7 @@ PATH=`echo $PATH | sed "s@$THISDIR:@@"` #get a list of commands from the usage history mkdir -p "$HOME/.gnu-pricing/" TOTALCOUNT="0" -USEDCMDS=`ls -1 "$HOME/.gnu-pricing/" | sed 's@.usage$@@'` +USEDCMDS=`ls -1 "$HOME/.gnu-pricing/" | grep -Eo '(.*).usage' | sed 's@.usage$@@'` #print header echo -e "Overall GNU command usage"