Search commandlinefu.com from the command line using the API

cmdfu(){ curl "http://www.commandlinefu.com/commands/matching/$(echo "$@" | sed 's/ /-/g')/$(echo -n $@ | base64)/plaintext" --silent | vim -R - }
Search for one/many words on commandlinefu, results in vim for easy copy, manipulation. The -R flag is for readonly mode...you can still write to a file, but vim won't prompt for save on quit. What I'd really like is a way to do this from within vim in a new tab. Something like :Tex path/to/file but :cmdfu search terms

3
2012-02-10 16:26:47

3 Alternatives + Submit Alt

What Others Think

I think I am the luckiest person to find my dream site called assignment writing services. Seriously I havent seen something like this before. Highly recommended to you guys!
Aria · 29 weeks and 2 days ago
Thanks for sharing information on how to recover lost Sdcard data. I have got the acornteaching.com from this post that I needed, and I will utilize this in my paper now.
seoexpert · 22 weeks and 2 days ago
I must admit that your post is really interesting. I have spent a lot of my spare time reading your content. Thank you a lot! Kingemarket.com
seoexpert · 22 weeks and 1 day ago
I adore your websites way of raising the awareness on your readers. aesthetic treatments
seoexpert · 22 weeks and 1 day ago
Hi! This is my first visit to your blog! We are a team of volunteers and new initiatives in the same niche. Blog gave us useful information to work. You have done an amazing job! endodontist dentist
seoexpert · 22 weeks ago
Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates. endodontist dentist
seoexpert · 22 weeks ago
I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job Deep Tissue
seoexpert · 22 weeks ago
This website is remarkable information and facts it's really excellent https://zdravotnidesign.cz
seoexpert · 21 weeks and 6 days ago
this is really nice to read..informative post is very good to read..thanks a lot! cleaning company coral springs
seoexpert · 21 weeks and 6 days ago
Hi to everybody, here everyone is sharing such knowledge, so it’s fastidious to see this site, and I used to visit this blog daily interesting facts about seo to know in 2022
seoexpert · 21 weeks and 6 days ago
Your music is amazing. You have some very talented artists. I wish you the best of success. milea slot
seoexpert · 21 weeks and 6 days ago
It's late finding this act. At least, it's a thing to be familiar with that there are such events exist. I agree with your Blog and I will be back to inspect it more in the future so please keep up your act. sustainability
seoexpert · 21 weeks and 5 days ago
Thank you so much for such a well-written article. It is filled with detailed information. Your point is the best among many blogs without fail. fireboy and watergirl
cocacola899 · 10 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

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.

Share Your Commands



Stay in the loop…

Follow the Tweets.

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

Subscribe to the feeds.

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: