Differences between version 33 and previous revision of BenStaz.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 33 | Last edited on Thursday, June 7, 2007 6:20:49 pm | by BenStaz | Revert |
Older page: | version 32 | Last edited on Wednesday, May 30, 2007 4:06:43 pm | by IanMcDonald | Revert |
@@ -10,8 +10,9 @@
!My Guides/Hints:
+* [WgetNotes]
* [RunlevelNotes]
* [SysctlNotes]
* [InstallJDK]
* [Odt2txt]
@@ -31,4 +32,9 @@
* [x2x]
* [VMWareNotes]
* [FglrxNotes]
* [BcNotes]
+
+!Random Bash Script I Just Wrote
+<verbatim>
+IFS=$'\n'; lines=($(aptitude search ~g)) count=${#lines[@]}; random_index=$((RANDOM % count)); echo "${lines[random_index]}"
+</verbatim>