linux - How can I search for files in directories that contain spaces in names, using "find"? -


how can search files in directories contain spaces in names, using find? use script

#!/bin/bash in `find "/tmp/1/" -iname "*.txt" | sed 's/[0-9a-za-z]*\.txt//g'`     j in `ls "$i" | grep sh | sed 's/\.txt//g'`             find "/tmp/2/" -iname "$j.sh" -exec cp {} "$i" \;     done done 

but files , directories contain spaces in names not processed?

this grab files have spaces in them

$ls more space  nospace  stillnospace  space $find -type f -name "* *" ./this space ./more space 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -