I'm using bash and I would like to convert list of dates in format "08-Sep-2020 07:08:49
" to timestamp.
I found the way to do it one by one, line by line in a loop but I would like to convert whole file without using loops if possible. I was thinking about one line code like "cat /tmp/file | <some_command>
"
Example file content:
08-Sep-2020 03:07:04
08-Sep-2020 02:20:46
08-Sep-2020 23:25:52
Currently I'm using
date -d "09-Sep-2020 06:52:44" +%s
I would like to get another file or the same file with:
1599530824
1599528046
1599603952