Bonjour,
j'ai une ligne de ce type ci-dessous
je récupere mes informations1316802182 1 4 4 opdstdb1 4393261 4393261 0 opdstcl1 nbjm client opdstcl1 handling path /OTA4GJO-arch-BS8411-BP1-23092011-762639770
Je récupère le 15 champ, je supprime les tirets et ensuite je voudrais prendre que le deuxième champ. le mot arch.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 if (( $line =~ /nbjm client/ ) and ( $line =~ /handling/ )) { my $schedule_time = $infojob[0]; my $start_time = $infojob[0]; my $job_id = $infojob[5]; my $client = $infojob[8]; my $rman = $infojob[14]; $rman=~s/-/ /g;
Quel serait la meilleur façon de le faire?
D'avance merci pour votre aide
Partager