Author: Bernd Storck Language: bash
Description: Converts a German date in an English format, f. e. "20.05.2018" to 2018/05/20. Timestamp: 2018-05-24 04:28:15 +0000
View raw paste Reply
#!/bin/bash
#
# convdate
#
# Converts a German date in an English format, f. e. "20.05.2018" to 2018/05/20.
#
# Bernd Storck, 24. Mai 2018, https://www.facebook.com/BStLinux/

echo "$1" | sed "s:\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\):\3/\2/\1:"
 
View raw paste Reply