Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Thursday, July 7, 2011

UnxUtils find

Don't use single quotes round a -name spec to the UnxUtils version of find. Use double quotes or no quotes.

\utils\u\find c:\perl -name *.pl -mtime -20
\utils\u\find c:\perl -name "*.pl" -mtime -20

Not
\utils\u\find c:\perl -name '*.pl' -mtime -20


which you're probably used to from the Unix version.


Also, to specify a date range, just use two conditions (they get implicitly ANDed):

\utils\u\find c:\ -name "*.sql" -mtime -30 -mtime +26

Followers

Blog Archive