bonjour. comment puis-je afficher à l'aide de la commande grep et ls (et donc un pipe) tous les fichier contenant exactement 2 lettres "m" et n'importes quel nombre de caractères ?
merci
# ls -l total 0 -rw-r--r-- 1 root root 0 2006-10-26 19:06 aaammbbb -rw-r--r-- 1 root root 0 2006-10-26 18:48 aaammsdkjm -rw-r--r-- 1 root root 0 2006-10-26 18:57 bbmem -rw-r--r-- 1 root root 0 2006-10-26 18:47 madfsdm -rw-r--r-- 1 root root 0 2006-10-26 18:47 mamiemando -rw-r--r-- 1 root root 0 2006-10-26 18:56 mamie.txt -rw-r--r-- 1 root root 0 2006-10-26 18:48 mm -rw-r--r-- 1 root root 0 2006-10-26 18:47 mmdjfkLes fichiers dont le nom contient seulement 2 m quelque soit leur position
# ls -l * | grep -x '[^m]*m[^m]*m[^m]*' -rw-r--r-- 1 root root 0 2006-10-26 19:06 aaammbbb -rw-r--r-- 1 root root 0 2006-10-26 18:57 bbmem -rw-r--r-- 1 root root 0 2006-10-26 18:47 madfsdm -rw-r--r-- 1 root root 0 2006-10-26 18:56 mamie.txt -rw-r--r-- 1 root root 0 2006-10-26 18:48 mm -rw-r--r-- 1 root root 0 2006-10-26 18:47 mmdjfklami20j
Combien cela coûte-t-il au total ? Quelles aides apportent l'état et les acteurs du marché pour alléger cette charge non choisie ? Tous les détails sur Commentçamarche.net.