Posts Downloads Tags About RSS feed of posts

Run a command at exit

$ sh
$ trap 'echo bye' EXIT
$ exit
bye
$

#shell #unix #note