I have a UNIX script which is supposed to scan all the folders and return the files older than speciific amount of time. I gave the logic as below, but the script is not able to read the folders with spaces. Can anyone please help on how to make this work?
dir='/a/b/test';
script is scanning all the sub directories after test, but not able to scan the directories with spaces, example 'test script'.