Untitled
public text v1 · immutableawk '
{
wrong+= gsub("\\/\\*","/*");
words+= gsub("\\^([^\\$]*)\\$","hola");
}
END{
format="%Y/%m/%d-%H:%M:%S";
print "DATE: "strftime(format);
print "WORDS IN FILE: "words;
print "UNKNOWN WORDS: "wrong;
print "TRANS-TYPE: "'$STATS_TYPE';
}' < $TMP > $LOGSDIR$SEC.log
echo "" >> $LOGSDIR$SEC.log
echo $LOGSDIR$SEC.log