Bash related issue, not sure where to post it

Normally, you can’t nest the same type of quotes inside each other.

Use a string, like this:

 alias lastup=$'awk \'END{sub(/\[/,""); print $1}\' /var/log/pacman.log'

Also worth noting that the command doesn’t tell you the last time you updated but the last time you did anything with pacman.

1 Like