Afficher un message
Vieux 29/05/2007, 01h59   #4
di0rz`
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: bash, delete the content of a directory

thanks it's working


On May 25, 8:11 am, SiKing <nos...@noway.invalid> wrote:
> di0rz` wrote:
> > i am looking for a tip to delete the content of a directory without
> > deleting the actual directory with bash

>
> $ man rm
>
> Try:
> $ rm -rf <directory>/*
> $ rm -rf <directory>/.* # if you also want to hit dot-files
>
> Or is there something that I missed?
>
> --
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GE d+(-) s+: a@ C+ ULAHS++$ P- L+>++ E--- W++ N++ o !K w--(+) O- M?>+ V? PS+
> PE+(++) Y+ PGP- t+ 5 X R !tv b+ DI(+) D G e++ h---- r+++@ y++++
> ------END GEEK CODE BLOCK------



  Réponse avec citation
 
Page generated in 0,04243 seconds with 9 queries