I'm reading the files in a directory using the script below but the problem is when a file has a space inside of it for example a file named "New_ Extel File.xlsx". The script reads the one file name as three seperate files such as New_ is one file Extel is anotehr file and then File.xlsx is the third file. Is there anyway to get rid of the spaces so that filename is read as one filename instead of 3? Is there a way to do this in Perl if not bash??
for i in `ls`; do