bash: Filtering out directories and extensions from find? -
I'm trying to find recently modified files on
-MTM 0
Who gives me
en / content / file.xml es / file.php en / file.php.swp CSS / main CSS JS / Main.JS
but I would like to filter the n
and es
directory but would like to take anything else In addition, I would like to filter the .swp
file with the result of those results
Then I want to go back:
CSS / main CSS js / main.js xml / foo.xml
< In addition to each other file that does not fall within / code> es / en and .swp
OK, just search for:
find -mtm 0 -not \ (-name '* .swp' -o-path './es* '-o-path' ./en* '\)
Comments
Post a Comment