Shell scripting (BASH) : How to create temporary…