I'm using this line in a bash script to fill an array with file names. But the file names are getting broken up if there is a space in it, i.eCode:files=(`find $FOLDER | grep -i "\.jpg$\|\.gif$\|\.png$\|\.bmp$"`)
File names:file name.jpganother.bmphere is another.gifArray:files[0]=filefiles[1]=name.jpgfiles[2]=another.bmpfiles[3]=herefiles[4]=isfiles[5]=another.gif
How can I prevent this?
Bookmarks