From 55f9bd8d5226eb49f5899c5ddca89c655ef96e9b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 1 Jul 2017 18:17:38 -0400 Subject: stuff --- bin/dateify | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/dateify (limited to 'bin/dateify') diff --git a/bin/dateify b/bin/dateify new file mode 100755 index 0000000..7aefdd9 --- /dev/null +++ b/bin/dateify @@ -0,0 +1,14 @@ +#!/usr/bin/sed -rf +s/\b([0-9]{2})-([A-Z][a-z][a-z])-([0-9]{4})(\b|T|_)/\3-\2-\1\4/ +s/Jan/01/ +s/Feb/02/ +s/Mar/03/ +s/Apr/04/ +s/May/05/ +s/Jun/06/ +s/Jul/07/ +s/Aug/08/ +s/Sep/09/ +s/Oct/10/ +s/Nov/11/ +s/Dec/12/ -- cgit v1.2.3-54-g00ecf