Check These Out
I often use it to find recently added ou removed device, or using find in /dev, or anything similar.
Just run the command, plug the device, and wait to see him and only him
Commandlinefu.com is great but has a few bugs when people are submitting new commands:
.
1. There is no preview button. This was a minor inconvenience before, but now is a major problem since new commands won't show up to be edited until they have been moderated.
.
2. White space in the description field and in the comments is almost completely lost. People resort to using periods in between paragraphs to force a line break. Indentation of code is ridiculous.
.
3. Many characters get munged.
.
3a. For example, a less than character in the description gets read as an HTML tag and discarded. In order to type a less than, I've had to type "<" (I hope that comes out right). Unfortunately, when re-editing a command, the HTML entity is turned into a literal less than character, which I have to change back by hand before saving.
3b. Some unicode characters work in the description field, but turn into ugly literal HTML strings when put in the sample output or in an additional command using the $ prefix.
.
For example, here is a unicode character: ❥
$ Here is the same character after a dollar sign: ❥
.
3c. Some unicode characters don't work anywhere. Bizarrely, it appears to be the most commonly needed ones, such as Latin-1 accented characters. Here are some examples,
.
Bullet: ?, Center dot: ?, Umlaut u: ?.
.
4. Here is an example of the greater than, >, and less than,
Can be used for command line parameters too.
If you have a more complicated way of entering values (validation, GUI, ...), then write a function i.e. EnterValue() that echoes the value and then you can write:
$ param=${param:-$(EnterValue)}
The PID will only be printed if you're holding a root equivalent ID.
Changes pidgin status using its dbus interface. The status code can be obtained using command #4543.
Merge files, joining line by line horizontally.
Very useful when you have a lot of files where each line represents an info about an event and you want to join them into a single file where each line has all the info about the same event
See the example for a better understanding
Very quick way to change a word in a file. I use it all the time to change variable names in my PHP scripts (sed -i 's/$oldvar/$newvar/g' index.php)