Skip to main content
8 events
when toggle format what by license comment
Jul 19, 2024 at 22:11 comment added steeldriver Depending on your OS and the original timestamp format, you might be able to use ts (from moreutils) to reformat the timestamps e.g. ts -r '%d/%m/%Y %H:%M' < file.log
Jul 19, 2024 at 10:54 vote accept Guif If
Jul 19, 2024 at 10:18 answer added terdon timeline score: 3
Jul 19, 2024 at 9:42 comment added Ed Morton Calling an external command from awk will be very slow - you might want to consider not doing that. In particular GNU awk has it's own time functions so you may not need to call date from awk at all.
Jul 19, 2024 at 9:32 comment added Ed Morton If you ran that outside of awk/system, e.g. date -d today +%d/%m/%Y %H:%M, you'd get the same error so debug calling date on it's own first and then call it the same way from inside awk. If you need quotes on the command line (you do) then you need quotes inside the string you're passing to awk/system.
Jul 19, 2024 at 9:14 history edited Kusalananda
edited tags
S Jul 19, 2024 at 9:08 review First questions
Jul 19, 2024 at 10:58
S Jul 19, 2024 at 9:08 history asked Guif If CC BY-SA 4.0