I have the following script:
tail -f nohup.out echo 5
When I press Ctrl+C on tail -f, the script stops r
tail -f
#!/bin/bash trap "echo 5" SIGINT SIGTERM tail -f nohup.out