Show HN: Commandlinefu.com from the commmandline
samirahmed.github.com
samirahmed.github.com
Top one-liners 1-10:
http://www.catonmat.net/blog/top-ten-one-liners-from-command...
Top one-liners 11-20:
http://www.catonmat.net/blog/the-next-ten-one-liners-from-co...
Top one-liners 21-30:
http://www.catonmat.net/blog/another-ten-one-liners-from-com...
Top one-liners 31-40:
http://www.catonmat.net/blog/yet-another-ten-one-liners-from...
For others who have not seen commandlinefu.com, it's a collection of interesting commandline commands.
I like the Twitter feeds on their site http://www.commandlinefu.com/ . For example, you can subscribe to the feed http://twitter.com/commandlinefu10 which posts a command if it gets at least 10 upvotes.
ooohh thank you. Without that context I was wondering what the heck this tool was supposed to do.
I was doing a diff on an svn repo. Unfortunately, svn diffs are not in color, and being spoiled by git's color diffs, I looked at "svn help diff", but found no color option. A quick "fu color svn" yielded:
1 # Paged, colored svn diff
svn diff $* | colordiff | less -r
Awesome :)When I try the fu 1 command, I get an invalid index number error.
I have outlined a set of possible problems/fixes!
mehmet@cake:~/fu$ fu query wiki
1 # Query Wikipedia via console over DNS
dig +short txt <keyword>.wp.dg.cx
2 # Query Wikipedia via console over DNS
mwiki () { blah=`echo $@ | sed -e 's/ /_/g'`; dig +short txt $blah.wp.dg.cx; }
3 # Query Wikipedia via console over DNS
mwiki() { dig +short txt "$*".wp.dg.cx; }
488ms total:6
mehmet@cake:~/fu$ fu 1 fu: Error invalid index number!
edit: Commandlinefu.com -does- have a point system that could help determine valididy, it would be great if the points could be retrieved by Fu, and if you could rate up and down within Fu. Still, doesn't help if a code is ranked 0.
The '-o' flag will take you to the comments page of the command so that you can read other users inputs.
These are in place to help you make a more educated decision
-e would execute the command ? or would alter/edit the command?