Is there a command/script in linux or iwindows that will search through a list of TXT file and pull out any Date/time value found within those files and export it to a TXT which will contain the date/time and the filename it came from?
Thanks
Is there a command/script in linux or iwindows that will search through a list of TXT file and pull out any Date/time value found within those files and export it to a TXT which will contain the date/time and the filename it came from?
Thanks
Try this with GNU grep for years from 1000 to 9999:
grep -Eo '[0-3][0-9]/[0-1][0-9]/[1-9][0-9]{3} [0-2][0-9]:[0-5][0-9]:[0-5][0-9]' file