linksLast and uncomment: Fix shellcheck warnings
This commit is contained in:
@@ -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];
|
||||
}
|
||||
' $@
|
||||
' "$@"
|
||||
|
||||
@@ -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/ $//'
|
||||
|
||||
Reference in New Issue
Block a user