Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
awk 'BEGIN{FS=OFS=","}$2~/SPEC:/{$2=$2"1"}1' /input/file
Your above example ( 6 Sep 06 6:02 ) shows changes in both line...omoo said:I just need to change the 1st line.
[gray]# works on lines with SPEC:[/gray]
perl -F, -ape 'if($F[1]=~/SPEC:/){$F[1].="1";$_=join",",@F}' /input/file
[gray]# works on first line[/gray]
perl -F, -ape 'if($.==1){$F[1].="1";$_=join",",@F}' /input/file
perl -pe 's/(SPEC:\w+)/${1}1/ if $.==1' /input/file