Here is something that I found on the commandlinefu cp /work/host/phone/ui/main.cpp !#$:s/host/target Ah well…its very interesting and very useful. Some explanation: !# – means the current command (similar to !! being the last command) $ – represents the last parameter :s – is used for substitution. Related articles CommandLineFu: Amazing Collection Of Command Line Gems [...]
Compare files excluding certain lines.
Quick tip, you can use any expression for the sed commands in the (). With this trick you can redirect the stdout of 2 commands to the diff command. This might become very useful, if you want to compare 2 files, excluding the first line. diff <(sed ’1d’ file) <(sed ’1d’ file2) More interesting example [...]
Cont: Get yourself some more conkyrc files.
Last time we got ourselves some conkyrc files from the ubuntu forums. But that scripts gets the files only from the First page of the thread. Lets extend this further and get the script to get all the conkyrc files. There are some 1048 pages in the thread, I am showing pages 1 to 3 [...]










