find exclude name site:superuser.com - Axtarish в Google
5 мар. 2012 г. · You can use the negate (!) feature of find to not match files with specific names: find . ! -name '*.html' ! -path '*.svn*' -exec grep 'SearchString' {} /
30 июн. 2013 г. · Unlike the --exclude parameter for rsync that can excludes both files and directories, the *nix find command's -prune parameter can only exclude directories.
2 мар. 2013 г. · You could do this using sed (which executed faster for me, than the basename approach): find trunk/messages/ -name "*. po" | sed 's!. */!!
13 февр. 2017 г. · To exclude a file, either use a more restrictive regex than *.png or grep the output to exclude a result: find . -name "*.png" | grep -v "file1.png"
12 февр. 2021 г. · Try find . ! -name '*.h','*.cpp','*.dll' and lemme know if it works. I don't ever use the find command so I'm not 100% sure if that will work or ...
2 мая 2013 г. · The easiest way would be to just add -mindepth 1, which will skip the first depth hierarchy and thus leave out your parent directory.
22 нояб. 2013 г. · This solution works even with spaces but requires some typing: find -mindepth 1 -maxdepth 1 ! -name "peter" ! -name "paul & mary" -exec rm {} \+
27 февр. 2016 г. · This is surprisingly hard to search for because all results are for excluding directories in the search. I just want to exclude directories from the output.
24 авг. 2017 г. · How do I use find to list every single file but exclude a handful of directories from the search? find / -type f -not -path "./foo*" -not -path ...
13 нояб. 2020 г. · I would exclude files with names beginning with ._ using find itself: find . -type f ! -name '._*' '(' -name '*.avi' -o -name '*.mp4' -o ...
Novbeti >

 -  - 
Axtarisha Qayit
Anarim.Az


Anarim.Az

Sayt Rehberliyi ile Elaqe

Saytdan Istifade Qaydalari

Anarim.Az 2004-2023