>
> [egreshko@meimei try]$ find /tmp/try -type f -name \*.php -exec grep -l -i -n 
> -G "<?$" '{}' \;
> /tmp/try/one.php
>
> --
> The only thing worse than a poorly asked question is a cryptic answer.
>
>
So you want all the <? but not the <?php, <?xml, <?= in text files?

grep -r "<?" * | grep -v "Binary file" | grep -v "<\?php" | grep -v
"<\?xml" | grep -v "<\?="
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to