Skip to content
Advertisement

Combining find command conditions

I am trying to combine 2 find commands to pipe to a grep pattern match.

my 3 commands are:

get files modified in the last 24 hours:

JavaScript

ignore a couple of directories:

JavaScript

find pattern in the file’s lines:

JavaScript

I have gotten below to work but cant seem to add directory skipping into the mix.

get files modified in the last 24 hours and find pattern in the file’s lines:

JavaScript

So ideally I would like to combine getting files modified in the last 24 hours and ignoring directories.

Advertisement

Answer

JavaScript

or

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement