Subscribe to aSkDba.org Forum Posts

Enter your email address:

Delivered by FeedBurner


Askoracledba's Weblog Tech@aSkDbA.org


AskDBA.org Forum » DBA - Wiki

Unix tip: Finding files not containing a pattern

(1 post)
Average Rating For This Topic:

Rate This Topic Yourself:
  • Started 11 months ago by Amit Bansal

Tags:


  1. Amit Bansal

    Oracle DBA
    Joined: Jun '08
    Posts: 44

    offline

    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

    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.

151 posts in 54 topics over 26 months by 40 of 79 members. Latest: bertjacobs, karlwasser, orindaglance