pipe the file into 'wc' so that it doesn't print filename
This commit is contained in:
parent
467e820e67
commit
5723f53250
3
fetch
3
fetch
|
@ -1204,8 +1204,7 @@ getshuffle () {
|
||||||
|
|
||||||
getascii () {
|
getascii () {
|
||||||
# Get length of longest line
|
# Get length of longest line
|
||||||
length="$(wc -L "$ascii")"
|
length="$(wc -L < "$ascii")"
|
||||||
length=${length/ *}
|
|
||||||
|
|
||||||
# Set the text padding
|
# Set the text padding
|
||||||
padding="\e[$((length + gap))C"
|
padding="\e[$((length + gap))C"
|
||||||
|
|
Reference in New Issue