Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Sorry to drag up such an old thread, this is just what I wanted
That first script from jmings is great, thanks.
I wonder if someone would expand on one of the scripts, so it displays the word, then when I press return again, it displays the same line but from another text file.
EG, I run it, it displays line 28 from my Japanese vocabulary text file, I press return again and it displays line 28 from the translations text file
Even simpler: shuf -n 1 <file_name> does it in one command. Try a man -k random | grep '(1' for a list of all stand-alone commands related to random things. (Provided you've installed the man system, which not all distribution default to doing.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.