Uses UNIX time for sorting.
Count and Find all IP connected to my host through TCP connection. Show Sample Output
vim 7 required
attempts to delete all local branches. git will fail on any branches not fully merged into local master, so don't worry about losing work. git will return the names of any successfully deleted branches. Find those in the output with grep, then push null repositories to the corresponding names to your target remote. assumes: - your local and remote branches are identically named, and there's nothing extra in the remote branch that you still want - EDIT: you want to keep your local master branch
Expand a URL, aka do a head request, and get the URL. Copy this value to clipboard.
In case sed and awk are not available you may use this to remove the last character from a string with "rev" and "cut". Show Sample Output
Encrypt any text to MD5 , replace text with the string you want to convert to MD5 Show Sample Output
Enhancement for the 'busy' command originally posted by busybee : less chars, no escape issue, and most important it exclude small files ( opening a 5 lines file isn't that persuasive I think ;) ) This makes an alias for a command named 'busy'. The 'busy' command opens a random file in /usr/include to a random line with vim.
If you don't have html2text Show Sample Output
Better awk example, using only mplayer, grep, cut, and awk. Show Sample Output
Requirements: Output: integer x , 1>=x Input: hostname Able to reproduce on the same host Acceptable for output to be different among OSes (Solaris, Linux, BSD) Useful for providing DayOfMonth splay in cron jobs. Capped at 28 for Febtober. Show Sample Output
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: