find

Duck Duck Go – My new search engine

Posted in duckduckgo, find, tips on May 22nd, 2010 by fseek – 13 Comments

I was lately looking for a better search engine to use (can’t stand Google anymore) and I recently found one that I really liked: http://duckduckgo.com. Yes, funny name, but they have the features that I was looking for:

  • Privacy -Your searches are private! I don’t need to say more
  • It looks at Sourceforge and other software repositories and show its results first (perfect for FOSS users).
  • Good categorization
  • Awesome for searching C functions! (details later)

Awesome, no? And no, I am not making any money from them, I just loved the product. Now, to the searches. Let’s compare a few of them with Google.

Let’s search first for “tux+racer” on Duck Duck go (I was looking for it this morning):duck duck go

Very good description from Wikipedia at the top, describes what Tux is and categorizes it properly under the open source video game. In the “feeling ducky”, it sends to the download page. Perfect! Now search for it on Google… It shows the right results, but without any good description and too much cluttered.

Now, that’s what I loved. Search for “fseek” (or any C function). DDG beats Google easily…It shows that “fseek is a C function belonging to the ANSI C standard library, and included in the file stdio.h”, links to the C++ library reference, and if you go to their categorization, you will see everything about related C functions. Awesome! On Google, they just point a bunch of man pages…
Duck Duck and Go
That’s what sold me. If you like it too, they even have a spread page if you want to help them out: http://duckduckgo.com/spread.html

Finding lasted modifies files on Linux

Posted in find, linux, tips on May 13th, 2010 by fseek – Be the first to comment

Looking for a file that you just modified or downloaded? That’s the easy way:

1- Files modified in the last 5 minutes:

$ find ./ -type f -mmin -5

 
2- Files modified in the last hour:

$ find ./ -type f -mmin -60

 
3- Files modified in the last day:

$ find ./ -type f -mtime -1

 
If you want to process them and they have spaces in the name, use:

$ find ./ -type f -name “*.txt” -mtime -1 -print0 | xargs -0 cat

 
This one will cat all text files modified on the last day (with spaces or not in the name).