[MITgcm-devel] another testreport adjustment
Jean-Michel Campin
jmc at ocean.mit.edu
Tue Mar 3 10:48:27 EST 2015
Hi Martin,
Could you check-in this modification ?
Cheers,
Jean-Michel
On Tue, Mar 03, 2015 at 10:08:58AM -0500, Oliver Jahn wrote:
> Hi Martin,
>
> beautiful. nl is part of the heirloom, so I have no objections.
>
> Oliver
>
> On 2015-03-03 03:21, Martin Losch wrote:
> > Hi Jean-Michel, Oliver,
> >
> > I would like to remove another “grep -A3”, which does not work on iblade from testreport and replace it with a complicated sed command that stretches over 4 lines. Also the “cat -n” is non-standard an some “cat”s cannot do that, so I would like to replace it with “nl”, see the attached testreport version. What do you think?
> >
> > Martin
> >
> > PS. here’s the diff
> >
> > 134c134
> > < grep "$2" $1/$4/$OUTPUTFILE | sed 's/.*=//' | nl > ${TMP}a.txt
> > ---
> >> grep "$2" $1/$4/$OUTPUTFILE | sed 's/.*=//' | cat -n > ${TMP}a.txt
> > 149c149
> > < grep "$2" $1/$5 | sed 's/.*=//' | nl > ${TMP}b.txt
> > ---
> >> grep "$2" $1/$5 | sed 's/.*=//' | cat -n > ${TMP}b.txt
> > 845,853c845,846
> > < # grep -A3 'Seconds in section "ALL' $OUTPUTFILE \
> > < # | sed 's/(PID.TID 0000.0001) //' >> $CDIR"/summary.txt"
> > < # some implementations of grep cannot do contextual searches so we
> > < # replace the above with a sed command
> > < cat $OUTPUTFILE | sed -n '/Seconds in section "ALL/{N
> > < N
> > < N
> > < p
> > < }' | sed 's/(PID.TID 0000.0001) //' >> $CDIR"/summary.txt"
> > ---
> >> grep -A3 'Seconds in section "ALL' $OUTPUTFILE \
> >> | sed 's/(PID.TID 0000.0001) //' >> $CDIR"/summary.txt”
> > 1694,1696c1687,1689
> >
> >
> >
> > _______________________________________________
> > MITgcm-devel mailing list
> > MITgcm-devel at mitgcm.org
> > http://mitgcm.org/mailman/listinfo/mitgcm-devel
> >
>
>
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-devel
More information about the MITgcm-devel
mailing list