13

making find/sed to include directory names with spaces

view full story
linux-howto

http://www.unix.com – how can i make find/sed to include directory names with spaces the command is like this Code: for i in `find wp-content/themes -type f -print0 | xargs -0 grep -l -iE 'e'`;do sed -i -e 's/word1/word2/gI' "$i";done but it skips one directory names with spaces Code: sed: can't read ./Nova: No such file or directory sed: can't read pasta/font/bougan_black_ssi_bold-webfont.eot: No such file or directory sed: can't read ./Nova: No such file or directory sed: can't read pasta/font/bougan_black_ssi_bold-webfont.svg: No such file or directory sed: can't read ./Nova: N (HowTos)