Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1492 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Débats

  La commande touch

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

La commande touch

n°179428
Nabal 01
Posté le 25-10-2002 à 20:55:36  profilanswer
 

Salut tous le monde !
 
J'ai un problème avec la commende touch sous linux :
Si je veux changer l'heure de création d'un fichier toto je tape :
$ touch -t 0210241200.00 toto
par exemple.
 
Mais si je veux faire ça sur toute l'arborescence, je fais quoi ?
 
J'ai essayé plein de trucs du genre:
$ find . | touch -t 0210241200
Mais ça marche pas !
 
IL ME FAUT UN PRO DU SHELL !!!! HELP !!!!!!

mood
Publicité
Posté le 25-10-2002 à 20:55:36  profilanswer
 

n°179432
eon
Posté le 25-10-2002 à 20:59:28  profilanswer
 

find . -exec touch -t 0210241200 {} \;

n°179435
Nabal 01
Posté le 25-10-2002 à 21:12:58  profilanswer
 

ROUDOUDIOU, j'ai rien compris mais ça marche !
 
MERCI beaucoup eon !!!!

n°179444
kuroineko
je mamgerais bien un truc la..
Posté le 25-10-2002 à 21:20:56  profilanswer
 

nabal 01 a écrit a écrit :

ROUDOUDIOU, j'ai rien compris mais ça marche !
 
MERCI beaucoup eon !!!!




 
c'est pourtant simple
 
find CONDITION -exec A FAIRE = si condition==true then FAIRE(a faire);
 
 
 
find . -exec touch bordel = if exist(*.*) then touch bordel;
 
LANGAGE SEULEMENT EXPLICATIF
 


---------------
[:kuroineko] Francois.P tel: (+33)617230820 http://www.ifrance.com/fpussault  fpussault@caramail.com

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Débats

  La commande touch

 

Sujets relatifs
Commande Unix pour changer les attributs des fichiers.[debian]Quel commande pour connaitre le nom des packages installés?
Problème de lignes de commande sous Mandrake 7.2[Debian Debutant] Script ou commande au demarrage
Qui connait un player MP3 en ligne de commande?c koi la commande qui permet
[NUX]Uploader un fichier sur ftp en une ligne de commandeHELP : Nmap et la commande -iL ...
pb commande eject[Newbie ] Speed touch + commande
Plus de sujets relatifs à : La commande touch


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR