pipe the file into 'wc' so that it doesn't print filename
This commit is contained in:
parent
467e820e67
commit
5723f53250
1 changed files with 1 additions and 2 deletions
3
fetch
3
fetch
|
@ -1204,8 +1204,7 @@ getshuffle () {
|
|||
|
||||
getascii () {
|
||||
# Get length of longest line
|
||||
length="$(wc -L "$ascii")"
|
||||
length=${length/ *}
|
||||
length="$(wc -L < "$ascii")"
|
||||
|
||||
# Set the text padding
|
||||
padding="\e[$((length + gap))C"
|
||||
|
|
Loading…
Add table
Reference in a new issue