Skip to content
Advertisement

Edit field with date in .csv

I have .csv file with lines like this:

JavaScript

and i need to change all date and time to this:

JavaScript

I think it’s possible using awk and date but until now nothing worked.

Advertisement

Answer

Some perl:

JavaScript

That removes the last 2 comma-separated fields from each line, deletes the fractional time and timezone, reformats the time and prints.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement