I have a file, events.html
, containing similar lines (among many other):
<td class="EventDate">2021-08-06 12:36:34</td>
where date and time strings are different in each line.
In these lines there are ONLY class="EventDate"
Like to remove from every such line ONLY time string.
Additional info:
- system is Debian 9.13 64 bit
- file is 38kb long
- there are about 100 records, each comprising line similar to
<td class="EventDate">2021-08-06 12:36:34</td>
BUT date and time strings are different in each line! - file contain near the end only one line with (example!)
date and time: [2021-08-08 14:16:54 UTC]
For security reasons can not post whole file.
I am neither IT professional nor Linux Guru
but capable of performing various demanding tasks.