FAQ Updates – June/26/2011

Posted on in Categories Sys admin last updated June 26, 2011

Our FAQ section is updated in last few days with new howtos:

FAQ & Howtos RSS Feed

Get intimated about our new howtos / faqs as soon as it is released via RSS feed.

nixCraft is on Facebook!

Not our Fan yet? We suggest you become one right away! Just visit our Facebook Page. Click on the “like” button.

How to recursively go through all local or remote directories

Posted on in Categories CentOS, Linux, programming, Shell scripting, Tips, Ubuntu Linux, UNIX last updated December 12, 2007

You can use find command or recursdir command to recurse through local or remote directories to command/find files or create tar files.

recursdir command pass a C script to recursively perform operations on files. recursdir is an excellent tool for automatic stuff. It provides C style programming functions and statements such as:

  • strncmp()
  • exec()
  • system()
  • strstr()
  • strcat()
  • printf()
  • popen()
  • if ( expr ) { take-action }
  • if ( expr ) { take-action } else { do-something-else; }
  • /* comments */
  • Detecting file types and macros
  • All of the logical, arithmetic and bitwise C operators are supported. These are ( ) >= < = > < != == && || ! - + * / % & ^ and have the same meanings and precedences as in C. etc.

Continue reading “How to recursively go through all local or remote directories”