Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. wilmington

    Printing Filename in awk statement

    I need help getting the filename out with my print statement. I want to prefix each matching line with the filename. I am reading through a list of files in $logs and printing lines with error: and matching date. $log |awk -vdd=`date +%d` '{ if ($3==dd && /error:/) print }' >>test.out how can...
  2. wilmington

    search for errors

    I am trying to check large files for errors. I though I would reduce the list by looking only for files modified in the last day. find . \( -type d ! -name . -prune \) -o \( -type f -name "*log*" -mtime -1 -print \) now I need to check for errors in the list of files but only want...
  3. wilmington

    grep based on file date

    I need to grep for strings in a group of files, but only if the last assess time is within the past 24 hours. I looked at Find, but the problem is it runs down subdirectories and there are a lot of them. How would you script this?

Part and Inventory Search

Back
Top