Hi,
I would like to combine the following four "sed" commands into a single command so that the "sed" does not have to go through the entire text file (around 1 GB) four times.
Code:
sed "/latency/d" $INFILE > tmp;
mv tmp $TEMPFILE
sed "/usecs/d" $TEMPFILE > tmp;
mv tmp $TEMPFILE
sed "/exiting/d" $TEMPFILE > tmp;
mv tmp $TEMPFILE
sed "/total/d" $TEMPFILE > tmp;
mv tmp $TEMPFILE
Thanks