Two sample shell scripts needed:
1) Sample to show how to use conditional logic in a shell script. Logic needed:
If /var/tmp/[url removed, login to view] exists then
echo 'File Exists'
echo 'File Does not Exist'
2) Parse the path and file name into distinct components:
/var/tmp/[url removed, login to view]
dir = /var/tmp
file = myufile
extension = .txt