Also, how would I apply modulus to it. Because I want random to return a number <2156. I want put $RANDOM%2156, but I am not sure how to use modulus in scripting. Thanks again
hi, I wanted to do something similar to this, but I want to extract a random line number. How would I go about doing this? I have tried to use:
sed -n $RANDOMp sonnets.txt
but that doesnt seem to work. Thanks in advance
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.