How to remove decimal date from a text file?

by damon salvator   Last Updated August 13, 2019 20:02 PM

I have a text file where date many times appear in two formats e.g. 01.01.10 or 01.01.2010

Is there any command that will remove all the dates from a text file?

Any help would be appreciated.

Tags : files text date


Answers 1


Try this:

sed -E 's/[0-9]{2}\.[0-9]{2}\.[0-9]{2,4}//g' file
guillermo chamorro
guillermo chamorro
August 13, 2019 19:46 PM

Related Questions


Updated August 05, 2019 16:02 PM

Updated May 28, 2016 08:00 AM

Updated April 29, 2018 18:02 PM

Updated December 08, 2016 08:00 AM

Updated May 20, 2017 21:02 PM