Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

grep files modified since yesterday

yesterday=$( date -d "yesterday 0:00" '+%m/%d/%Y %H:%M:%S' ); find . -regex '.*.out.*' -newermt "$yesterday" | xargs grep -oh ".[a-zA-Z]*Exception: "
 
PREVIOUS NEXT
Tagged: #grep #files #modified #yesterday
ADD COMMENT
Topic
Name
9+8 =