DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: Howt to run tkprof on all trace files in a directory

  1. #1
    Join Date
    Apr 2001
    Posts
    127

    Howt to run tkprof on all trace files in a directory

    Hi,

    I have a directory contains thousands of trace files, I would like to know how to run tkprof on all trace files in this directory?

    tkrpof *.trc *.tkf sys=no sort=prsela,exeela,fchela

    is not working

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    look through them in a script

  3. #3
    Join Date
    Apr 2001
    Posts
    127
    What's the command to loop through all files in a directory?

  4. #4
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    might help if you put os in

  5. #5
    Join Date
    Apr 2001
    Posts
    127
    aix

  6. #6
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    May be you can try your luck with awk..

    Code:
    ls | awk '{print "tkprof "$1" "$1".txt sys=no sort=prsela,exeela,fchela"}' | sh

    Rgds
    Abhay.
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width