View Single Post
Posts: 19 | Thanked: 1 time | Joined on Nov 2011
#592
Originally Posted by jpel View Post
Script to display random one line tag aphorisms from a text file :-)

Code:
#!/bin/sh
FILE=/home/user/scripts/taglines.txt
awk 'BEGIN { srand() }
{ l[NR]=$0 }
END { print l[int(rand() * NR + 1)] }' "$FILE"
Sample Screenshot
if i have a very long quote in a line. is it possible to make it print that whole line but in the Billboards 3 line?