I want to get the number of lines in my application. I am using this code:
find . \"(\" -name \"*.m\" -or -name \"*.h\" \")\" -print | xargs wc -l
The canonical way to solve quotes, spaces and special characters problems when using find is to use the -exec option instead of xargs.
find
-exec
xargs
For your case you can use:
find . "(" -name "*.m" -or -name "*.h" ")" -exec wc -l "{}" \;