23 Aug
2024
23 Aug
'24
15:40
On Freitag, 23. August 2024 16:58:34 MESZ Bengt Gördén wrote:
On 2024-08-23 16:28, mh@mike.franken.de wrote:
Something like this would work, but seems unnecessarily complicated: But that's why you want/need the alias, right? If it had been straightforward, no alias is needed.
good point :) alias jct3="/usr/bin/journalctl --all --since=\"$( /usr/bin/date --date='2 days ago' '+%Y-%m-%d 00:00:00' )\" --until=\"$( /usr/bin/date --date='2 days ago' '+%Y-%m-%d 23:59:59' )\""