0

I am trying to get all file which is reside in one folder and file name have space like

1)File Test 050791.xml

and i am fetching using below command

export srcfileTimeCheck="$(find $dir -type f -mtime +1)"

but this command give me error like

find: can not stat File
find: can not stat Test
find: can not stat 050791.xml

Please help me how can i find all file which having space also. Note: I Have tried

1) xrags -0 -I '{}' 

1 Answers1

0

Your variable name is a misnomer :)

To make the issue go away wrap the variable in double-quotes.

export srcfileTimeCheck="$(find "$dir" -type f -mtime +1)"
tink
  • 6,765