13 июн. 2013 г. · You can do it with find only: find . -name '*.xml' . is the current directory. If you need to search in another directory, replace . with ... |
16 авг. 2018 г. · One option that can be used is to nest the commands: find . -type d -name 'EmptyMe' -exec find {} -mindepth 1 -delete \; |
30 дек. 2018 г. · There is no need to use grep , find can do exactly what you seek. Use: find -iname "*.html" -printf "%f\n". It will look for all html files ... |
19 июн. 2012 г. · An easy way to do this is to use find | egrep string. If there are too many hits, then use the -type d flag for find. Run the command at the start of the ... |
27 февр. 2021 г. · To recursively list only hidden files from a terminal, you can use the tool find with the -type f option: find ~ -type f -name '.*'. |
3 янв. 2017 г. · In the parent directory, you could use find and then run grep on only those files: find . -type f -iname "file.txt" -exec grep -Hi "pattern" '{}' + |
6 февр. 2017 г. · You can use the find command below to recursively (depth-first) move all folders into a folder named after the first letter of their file ... |
2 июн. 2012 г. · I want to search all files recursively from the directory I am in for a particular string. I tried grep -r -i my_string and I tried it in a test folder with ... |
23 сент. 2022 г. · ls will list the files and directories that you specify on the command line. With the -R or --recursive option, it will go into any directory that is specified ... |
8 мар. 2024 г. · You can use the find command's -printf with the %f format specifier to get just the files' basenames. |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |