[ PHPXref.com ] [ Generated: Sun Jul 20 20:09:18 2008 ] [ Qdig 1.2.9.3 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> touchDirs.sh (source)

   1  #!/bin/bash
   2  # touchDirs.sh
   3  #
   4  # Prepare directories using touch(1).  The directories will all have
   5  # a similar (nearly-identical) timestamp, thus they'll sort by name
   6  # when they're presented as Qdig gallery directories.
   7  #
   8  # Explanation:
   9  # There's a Qdig setting to sort directories by name, but if
  10  # you sort them by time-since-modified, (the default setting)
  11  # this alphabetizes the listing.  When you create new directories,
  12  # they will appear before the alpha-sorted ones.
  13  
  14  find . -maxdepth 1 -type d -print0 |xargs -t -0 touch
  15  
  16  # Qdig project SourceForge.net CVS ID
  17  # $Id: touchDirs.sh,v 1.2 2004/04/07 05:00:44 haganfox Exp $
  18  # vim:set tabstop=4 shiftwidth=4 :


[ Powered by PHPXref - Served by Debian GNU/Linux ]