The first grep rejects capitalised words since the dict has proper nouns in it that you mightn't want to use. The second grep rejects words with ending in apostrophe s, and the third forces the words to be at least 15 characters long. Show Sample Output
This is a more concise answer to http://blog.commandlinekungfu.com/2011/09/episode-158-old-switcheroo.html in my opinion.
This is to get the latest version of phpMyAdmin to support scripts to download the latest version of the software if they want to automatically update. Show Sample Output
Will print the host associated with the current stdin. This is useful to set the DOIT_SERVER for the doit remote execution agent ( http://www.chiark.greenend.org.uk/~sgtatham/doit/ ) export DOIT_HOST=$(who -m | sed 's/.*(\(.*\)).*/\1/') Note that SSH_CLIENT variable can be lost if you use su or sudo (if set to reset vars) Show Sample Output
wrap it in a function if you like...
lastfile () { ls -ltp | sed '1 d' | head -n1 }
Show Sample Output
an extension of command 9986 by c3w, allows for link text. http://google.com,search engine will link the hyperlink with the text after the url instead of linking with the url as linktext Show Sample Output
I make an extensive use of sudo, so I had to exclude the sudo part of the command history
kded --version return this Qt: 3.3.8b KDE: 3.5.10 KDE Daemon: $Id: kded.cpp 711061 2007-09-11 09:42:51Z tpatzig $ awk -F: ................. Awk Field separator NR == 2 ................. Register Number, second line {print $2} ............... second field sed 's/\s\+//g' .......... remove one space or more \s\+ changing by nothing Show Sample Output
sed '$ d' foo.txt.tmp ...deletes last line from the file
This was tested on Ubuntu 12.04 (Precise) LTS Server. It returns the name of the symlink within /dev/disk/by-id for the physical drive you specify. Change /dev/sda to the one you want, and replace ata- with scsi- or the appropriate type for your drive. I used this to pre-configure grub-pc during a non-interactive install because I had to tell it which disk to install grub on, and physical disks don't have a UUID such as that blkid provides.
runs in background rewriting /etc/resolv.conf periodically
dns
This grabs all lines that make an instantation or static call, then filters out the cruft and displays a summary of each class called and the frequency. Show Sample Output
Shows the current directory and those below it in a simple tree structure. Recommended use: alias lt='$command_above'
This download a complete audio podcast
Look for a string in one of your codes, excluding the files with svn and ~ (temp/back up files). This can be useful when you're looking for a particular string in one of your source codes for example, inside a directory which is under version control (e.g. svn), removing all the annoying files with ~ (tilde) from the search. you can even change the command after -exec to delete (rm) or view (cat) files found by 'find' for example
But who knows to delete the rest of the lines? I want only "string".
Linux : these script enable you to edit multiple files and remove exact phrase from multiple files
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: