Check These Out
Only filters the statement related to a specific table ('departments', in the example), from the output of mysqldump
Creates one letter folders in the current directory and moves files with corresponding initial in the folder.
This will make your bash scripts better!!
process-getopt is a wrapper around getopt(1) for bash that lets you define command line options (eg -h, --help) and descriptions through a single function call. These definitions are then used in runtime processing of command line options as well as in generating help and man pages. It also saves a little time in coding and in producing nicely formatted documentation. It is quite similar to GNU's argp in glibc for compiled languages and OptionParse for python.
See: Linux Gazette article 162: http://tldp.org/LDP/LGNET/162/hepple.html,
http://sourceforge.net/projects/process-getopt, http://bhepple.freeshell.org/oddmuse/wiki.cgi/process-getopt
apt-get install cpulimit
Remove ( color / special / escape / ANSI ) codes, from text, with sed
Credit to the original folks who I've copied this command from.
The diff here is:
Theirs: [m|K]
Theirs is supposed to remove \E[NUMBERS;NUMBERS[m OR K]
This statement is incorrect in 2 ways.
1. The letters m and K are two of more than 20+ possible letters that can end these sequences.
2. Inside []'s , OR is already assumed, so they are also looking for sequences ending with | which is not correct.
This : [a-zA-Z]
This resolves the "OR" issue noted above, and takes care of all sequences, as they all end with a lower or upper cased letter.
This ensures 100% of any escape code 'mess' is removed.
You can then switch from a file to another with ^W^W
Python comments begin with a #. Modify to suit other languages.
Other uses: Instead of m0 use m$ for end of file or d for deleting all comments.
Brute force way to block all LSO cookies on a Linux system with the non-free Flash browser plugin. Works just fine for my needs. Enjoy.
Usage : tt [OCCURRENCE]
tt will display a tree from your actual path
tt .svn will display only line containing .svn
Change bash autocomplete case search to insensitive when pressing tab for completion.