Re: Help with quotes in find statement in ksh script

2011-07-16 Thread Jörg-Volker Peetz
Maybe, the following little shell example can help: file_pattern='-name \*.c -o -name \*.h' eval find . $file_pattern The stars ("*") have to be protected from being evaluated by the shell in the second line, therefore, the backslashes. The eval command does the trick, its a shell built-in. By t

Help with quotes in find statement in ksh script

2011-07-14 Thread Gonzalo Viegas Aurelio
Good Afeternoon, I need your help about an script for korn shell. My idea is to run a find with some -name "*pattern*", and save it's result into a variable and then make a loop with the file names founded. I'm devoloping for HP-UX. I've got this variable, filled dinamically and then that I will