I have files with a lot of data, but in several of them date is in this format: YYYYMMDD, f. e. 20150704
And in the others date is in this format: YYYY-MM-DD, f. e. 2015-07-04
I want to grep to find specific date, can I do this by one grep to both examples?
I tried this:
grep("*07*04",file)
and this
grep(".07.04",file)
Second form worked for this format YYYY-MM-DD but not for YYYYMMDD
Is there any way to do this by one grep?
Try
data