Bonjour,
Je suis totalement novice dans la programmation, mais j'aurai besoin d'un script pouvant modifier un fichier texte.
mon fichier texte comprend ceci :
"06292007","0000","C1","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
"06292007","0030","C1","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
"06292007","0100","C1","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
"06292007","0130","C1","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
"06292007","0200","C1","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
"06292007","0230","C1","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
"06292007","0300","C1","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
....
"06292007","2100","C60","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
"06292007","2130","C60","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
"06292007","2200","C60","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
"06292007","2230","C60","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
"06292007","2300","C60","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
"06292007","2330","C60","","CAB","0030","","","","","","","","","","","","","","","","","","","","","","","","","",""
donc 06292007 qui corréspond à la date du jour 29/06/2007
je aurai aimé trouvé/faire un script me permettant de modifier cette valeur avec la valeur du jour suivant en l'occurence 30/06/2007 soit 06302007
Ensuite j'aurai un fichier comprenant 7 jours et donc il faudrait générer un fichier toutes les semaines avec les dates corrépsondantes.
Merci de m'aiguiller vers la bonne voie.
Serge.
Partager