Check These Out
Crude, but works. Note for security, /data/ will be inaccessible unless your device has been *rooted*.
On the other hand, if a device has been rooted, its data is now wide open to anyone with a USB cable and the above "one-liner".
`adb` is one of the platform tools in the android SDK.
To get SMS messages:
$ adb pull /data/data/com.android.providers.telephony/databases/mmssms.db ; sqlite3 -batch
This function displays the latest comic from xkcd.com. One of the best things about xkcd is the title text when you hover over the comic, so this function also displays that after you close the comic.
To get a random xkcd comic, I also use the following:
$xkcdrandom(){ wget -qO- dynamic.xkcd.com/comic/random|tee >(feh $(grep -Po '(?
A null operation with the name 'comment', allowing comments to be written to HISTFILE. Prepending '#' to a command will *not* write the command to the history file, although it will be available for the current session, thus '#' is not useful for keeping track of comments past the current session.
sort command can sort month-wise (first three letters of each month).
See the sample output for clarification.
Sorting Stable ? NO. Take note if that matters to you.
Sample output suggests that sort performs unstable
sorting (see the relative order of two 'feb' entries).
Note the double space: "...^ii␣␣linux-image-2..."
Like 5813, but fixes two bugs: [1]This leaves the meta-packages 'linux-headers-generic' and 'linux-image-generic' alone so that automatic upgrades work correctly in the future. [2]Kernels newer than the currently running one are left alone (this can happen if you didn't reboot after installing a new kernel).
I'm bummed that this took 228 characters. I'd like to see a simpler version.
Working with lists of IP addresses it is sometimes useful to summarize a count of how many times an IP address appears in the file.
This example, summarizeIP, uses another function "verifyIP" previously defined in commandlinefu.com to ensure only valid IP addresses get counted. The summary list is presented in count order starting with highest count.
Using `-exec cmd {} +` causes find to build the command using all matching filenames before execution, rather than once per file.