I have a csv file that has many lines of timestamps in following format HH:MM:SS:MS
For example:
00.00.07.38
00.00.08.13
00.00.08.88
The hour is not relevant to me so I would like to cut it out. How do I remove HH from every line in file with bash.
I can read line by line from the file
while IFS=, read col1
do
#remove HH from every line
#awk -F '[.]' '{print $1}' <<< $col1 #only prints one portion of time
#echo $col1 | cut -d"." -f2 | cut -d"." -f3 | cut -d"." -f4
done < $file
I have been playing around with awk
and cut
but was only able to print a specific position ex HH etc
But how to remove just the HH from the line without creating a new file?