Linux Galaxy

Convert Date Formats in a Text file with Perl

Posted on Jan 15, 2022 by kingbeowulf

A query was posted recently on a list on how to convert date formats in the form of "month/day/year" into a more standard unambiguous "year-month-day". I dabbled in Perl a very long time ago and so thought I'd take a look. After searching the Internet and some practice, here is my stab at it. For an example csv text file, for tabular data in this case:

All posts tagged "regex"


Convert Date Formats in a Text file with Perl

Jan 15, 2022

kingbeowulf