1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

linksLast and uncomment: Fix shellcheck warnings

This commit is contained in:
chase 2018-08-12 10:15:50 -05:00 committed by Jon Trulson
parent ff17b57585
commit 5fb08c15d9
2 changed files with 4 additions and 4 deletions

View file

@ -8,9 +8,9 @@
USAGE="Usage: $0 file.lst"
case $# in
0) echo $USAGE;;
0) echo "$USAGE";;
1);;
*) echo $USAGE;;
*) echo "$USAGE";;
esac
awk '
@ -20,4 +20,4 @@ END {
if ( i > 0 )
for ( i in links) print links[i];
}
' $@
' "$@"

View file

@ -5,5 +5,5 @@
# and coalesce multiple blanks/tabs into a single blank
#
cat $@ | egrep -v '^[ ]*#|^[ ]*$' | sed 's/[ ][ ]*/ /g'|\
cat "$@" | grep -E -v '^[ ]*#|^[ ]*$' | sed 's/[ ][ ]*/ /g'|\
sed 's/ $//'