Compter le nb. de lignes d'un fichier ?? [Shell] - Shell/Batch - Programmation
Marsh Posté le 06-06-2003 à 13:12:03
pour une fois que je connais un truc linux je me fait griller 
Marsh Posté le 06-06-2003 à 13:57:54
et sous DOS ? 
 
p:\>find /V /C "gazjgvfzjehgvfjfgh" _toto.txt 
 
donne : 
---------- _TOTO.TXT: 50 
 
soit 50 lignes ne contenant pas "gazjgvfzjehgvfjfgh" 
Il suffit donc de donner une chaîne "impossible" 
A+
Marsh Posté le 06-06-2003 à 14:37:09
| JPA a écrit : et sous DOS ?  | 
  
 
Marsh Posté le 06-06-2003 à 14:57:28
| KSauzeRK a écrit : Sous UNIX / linux?   | 
 
 
parfait c ce ke je cherchais ! 
 
Merci à tous !   
  
Marsh Posté le 06-06-2003 à 12:47:59
c possible ? si oui, avec kel commande ?
 
 
Merci d'avance
---------------
It's hard to say it, I hate to say it, but it's probably me...