DBA - Wiki

AskDBA.org Forum » DBA - Wiki

Unix tip: Finding files not containing a pattern (1 post)

About This Topic

Tags

  1. Amit Bansal

    Oracle DBA
    Joined: Jun '08
    Posts: 73

    offline

    Posted 2 years ago
    #

    Q. How do you find files which do not contain a specific pattern say 'ORA-'
    A. You can use below command

    find . -name "*log" \! -exec grep -q "ORA-" {} \; -print

Reply

You must log in to post.

AskDBA.org Forum » DBA - Wiki
251 posts in 104 topics over 45 months by 63 of 109 members. Latest: KNHarri, xiaoling, Williams29