Getting files from a folder excluding formatsGetting files from a folder excluding formats

Just a simple command to get a listing of files from a folder excluding certain file extensions, using regex:

user$: find ./ -type f | grep -vP "\.css$|\.gz$|\.js$|\.sql$|\/settings\..*\.php$|\/settings\.php$|\.mysql$|\.mysql.*\.info$|\/environment$|\.htaccess$"

Credits for this answer on Stack Overflow: http://stackoverflow.com/a/22306099

Snippets Tags: 

Reactie toevoegen

Ververs Geef de karakters in die u in de afbeelding ziet. Type the characters you see in the picture; if you can't read them, submit the form and a new image will be generated. Not case sensitive.  Switch to audio verification.