grep --exclude=\*.{mp3,jpg,pdf,png} -i "size\|log" | cut -c 32-|grep -v name1 |grep -v name2
it's not working for me i want to do something like
ls -la | grep --exclude=\*.{mp3,jpg,pdf,png} -i "size\|log" | cut -c 32-|grep -v name1 |grep -v name2
but it's not excluding those extensions
ls -la | grep -i "size\|log" | cut -c 32-|grep -v name1 |grep -v name2 |grep -v "*.mp3"
is not working
the -r flag gives me the result but with the content of the file, i just wanna grep filename