bash clean-up code

Code Example - bash clean-up code

                
                        #!/bin/bash
function finish {
  # Your cleanup code here
}
trap finish EXIT