Strip First few Characters

I want to strip first few characters from each record until a proper datesamp is found.

Request for getNextPage.................06/29/12 07:49:30 VVUKOVIC@67.208.166.131{7A805FEF76A62FCBB23EA78B5380EF95.tomcat1}TP-Processor14 LogExchUsage: ERROR:: isprof=false : exch=NSDQ

output should be like

06/29/12 07:49:30 VVUKOVIC@67.208.166.131{7A805FEF76A62FCBB23EA78B5380EF95.tomcat1}TP-Processor14 LogExchUsage: ERROR:: isprof=false : exch=NSDQ

Is there any way i can use date/timestamp as a field separator in AWK command

Thanks in advance

perl -pe 's/.*?([0-9]{2}\/[0-9]{2}\/[0-9]{2})/$1/' inputfile

Date as a field separator in awk? Try:

awk -F'../../..' '{sub($1,x)}1' file
1 Like