finds all xml files greps them for extracts the bean id sorts the ids creates a list of distinct entries, a unique list of bean ids Show Sample Output
alternative to pidof command Show Sample Output
Adds a newline to the end of all cpp files in the directory to avoid warnings from gcc compiler.
Got a file you're generating and you want the size without typing in 'ls -l file' all the time? Use this instead. Show Sample Output
same thing without loop ;)
Another way to do it with slightly fewer characters. It doesn't work on Russian characters; please don't vote down because of that. :p It's very handy for those of us working in ascii :) Show Sample Output
the numbers in the ip address are represented in sed as \1\2\3\4. If I put \1\2\3$i, then I change the last number. So for example to change the second number I'll do \1$i\3\4. Regards, Kfir Show Sample Output
Use matched data and some other as replacement data Show Sample Output
as suggest in frans coment : '/^#[^!].*/d' -> remove if line begin with # except shebang #!/bin/bash 's/\(.*[^!]\)#.*[^}]/\1/' -> remove inline comments except shebang and ${variable#}
Doesn't depend on curl and doesn't use thumbnails as wallpaper (which has the unfortunate effect of only allowing imgur links)
Sort using kth column using : delimiter
This command removes and then cvs removes all files in the current directory recursively.
I use it to verify if readline support was specified at compile time. Show Sample Output
Before you use this command you want to replace everything after the "https:" with the url of the video which you want to download. This string and it's switches will use "youtube-dl" to download the Youtube url into the directory/folder where it is called from. It will output the video using the same name as Youtube uses.
Japanese subtitles are often encoded in shift-jis instead of utf-8, this avoids 文字化け when watching.
Install pdfbox. http://pdfbox.apache.org Show Sample Output
Downloads each file from a github gist individually. Requires jq ( https://stedolan.github.io/jq/ ).
dmesg -t: no timestamp -W: follow new messages -l: log-level notice gawk if the fourth word is "Attached" echo a sentence through espeak
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: