Pb script UNIX KSH
Résolu
Deeper
-
jipicy Messages postés 41342 Statut Modérateur -
jipicy Messages postés 41342 Statut Modérateur -
Bonjour,
Dans un script unix, j'ai un fichier $MONFIC qui contient :
../rep1/aaa.txt
../rep1/bbb.txt
../rep1/ccc.txt
je souhaiterais que le script supprime ../ devant chaque ligne
je pensais utiliser awk et cut, mais j'ai un peu de mal je l'avoue.
awk -v > ${MONFIC} | cut -c6- ${MONFIC} ne marche pas...
quelqu'un pourrait-il éclairer ma lanterne ?
Merci d'avance
Dans un script unix, j'ai un fichier $MONFIC qui contient :
../rep1/aaa.txt
../rep1/bbb.txt
../rep1/ccc.txt
je souhaiterais que le script supprime ../ devant chaque ligne
je pensais utiliser awk et cut, mais j'ai un peu de mal je l'avoue.
awk -v > ${MONFIC} | cut -c6- ${MONFIC} ne marche pas...
quelqu'un pourrait-il éclairer ma lanterne ?
Merci d'avance
Configuration: Windows XP Internet Explorer 6.0
A voir également:
- Pb script UNIX KSH
- Mas script - Accueil - Windows
- Ghost script - Télécharger - Polices de caractères
- Script vidéo youtube - Guide
- Admin script - Télécharger - Édition & Programmation
- Ipconfig unix ✓ - Forum Ubuntu