I have below command to get files and I want to exclude all .blade.php files.
$(git diff --cached --name-only --diff-filter=ACM | grep ".php\{0,1\}$")
How can I do that?
I tried these ways :
-
$(git diff --cached --name-only --diff-filter=ACM | grep --exclude="*\.blade.php*"| grep ".php\{0,1\}$") -
$(git diff --cached --name-only --diff-filter=ACM | grep --exclude="*\.blade.php*" ".php\{0,1\}$")
but none of the above is working.