Quick question: recursive touch?

Preston Landers prestonlanders at my-deja.com
Wed Oct 6 10:53:09 EDT 1999


A big thanks to everyone who pointed out mkdir -p to me and other
examples of how to do it.

---Preston

In article <14331.1643.652858.744529 at gargle.gargle.HOWL>,
  Charles G Waldman <cgw at fnal.gov> wrote:

> touch() {
>   mkdir -p `dirname $1`
>   touch $1
> }

--
|| Preston Landers <prestonlanders at my-deja.com> ||


Sent via Deja.com http://www.deja.com/
Before you buy.




More information about the Python-list mailing list