posts : tags : programs

Run a command at exit

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

#shell #unix #note