Add copy-tag for singular code blocks

This commit is contained in:
Daniel_I_Am 2022-06-13 00:54:45 +02:00
parent d44bffd81f
commit 1e64328a64

View File

@ -7,6 +7,6 @@ draft: false
We can echo the result of the current timestamp subtracted from the last edit timestamp in `/var/lib/pacman/local/*/desc`. We can echo the result of the current timestamp subtracted from the last edit timestamp in `/var/lib/pacman/local/*/desc`.
``` ```sh {data-copy-button=true}
echo $(expr $(date +%s) - $(grep -rn -A 1 %INSTALLDATE% /var/lib/pacman/local/*/desc | grep -oP '\d{10,}$' | sort | tail -1)) echo $(expr $(date +%s) - $(grep -rn -A 1 %INSTALLDATE% /var/lib/pacman/local/*/desc | grep -oP '\d{10,}$' | sort | tail -1))
``` ```