#!/bin/sh # wwwoffle-stat -- does a stat(1) of a page in the cache # Copyright : http://www.fsf.org/copyleft/gpl.html # Author : Dan Jacobson -- http://jidanni.org/comp/wwwoffle/ # Created On : Tue Mar 30 03:33:50 2004 # Last Modified On: Tue Mar 30 03:47:16 2004 # Update Count : 4 #wwwoffle-ls should have more ls(1) options. In the meantime, this #program is like wwwoffle-ls, but instead gives stat(1) output. for i do set -- $(wwwoffle-ls $i) test $# -gt 0 || continue #because wwwoffle-ls doesn't return error values oIFS=$IFS; IFS=/$IFS; set -- $@; IFS=$oIFS echo $i stat ${wwwoffle_cache-/var/spool/wwwoffle}/${6%:}/$8/$1 done