How to remove decimal date from a text file?

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

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


How do I set Nautilus/Files view preferences?

Updated August 05, 2019 16:02 PM




A script to tell me how far apart two dates are

Updated May 20, 2017 21:02 PM