Commande shell
ihssan-flower
Messages postés
10
Date d'inscription
Statut
Membre
Dernière intervention
-
jipicy Messages postés 40842 Date d'inscription Statut Modérateur Dernière intervention -
jipicy Messages postés 40842 Date d'inscription Statut Modérateur Dernière intervention -
salut,
j'ai un fichier 2.txt contenant:
copiage/ll.txt
copiage/2.txt
copiage/ihssanz.
copiage/copier.ksh
copiage/arbo1/ihssan*/hjbg/txt.txt
copiage/arbo2/arbo1/ihssan*/b/execute.ksh
copiage/arbo2/arbo1/ihssan*/jhgj/txt.txt
copiage/ihssan.ksh
je ve appliquer sur chaque ligne du fichier 2.txt les ligne de commandes suivantes
et qui peuvent etre contenu dans un script
echo 'sed "/PKG_TAR/s/[ [:digit:] ] /3/" < x > tmp && mv -f tmp x
echo "' '' '" | tr -d "\t" < x > tmp && mv -f tmp x
et x peut etre soit copiage/ll.txt ou copiage/2.txt ou ...
je veux parcourir le fichier ligne par ligne et appliquer les commande sur chque ligne
merci d'avance
j'ai un fichier 2.txt contenant:
copiage/ll.txt
copiage/2.txt
copiage/ihssanz.
copiage/copier.ksh
copiage/arbo1/ihssan*/hjbg/txt.txt
copiage/arbo2/arbo1/ihssan*/b/execute.ksh
copiage/arbo2/arbo1/ihssan*/jhgj/txt.txt
copiage/ihssan.ksh
je ve appliquer sur chaque ligne du fichier 2.txt les ligne de commandes suivantes
et qui peuvent etre contenu dans un script
echo 'sed "/PKG_TAR/s/[ [:digit:] ] /3/" < x > tmp && mv -f tmp x
echo "' '' '" | tr -d "\t" < x > tmp && mv -f tmp x
et x peut etre soit copiage/ll.txt ou copiage/2.txt ou ...
je veux parcourir le fichier ligne par ligne et appliquer les commande sur chque ligne
merci d'avance
A voir également:
- Commande shell
- Invite de commande - Guide
- Classic shell - Télécharger - Personnalisation
- Commande terminal mac - Guide
- Commande dism - Guide
- Diskpart commande - Guide