12 окт. 2020 г. · If using GNU find, it's dead simple: find directory/ -name "*.json" -delete. |
5 дек. 2013 г. · Just add a -print expression to the invocation of find : find <PATH> -type f -name "<filePattern>" -mtime +1 -delete -print > log. |
31 дек. 2013 г. · But this is not a good idea to use this command if there is a chance of directories or files, you don't want to delete, having names with the ... |
23 окт. 2012 г. · Use find for name "a" and execute rm to remove those named according to your wishes, as follows: find . -name a -exec rm -rf {} \; |
16 дек. 2021 г. · Read the file line by line, and launch the rm command on each iteration. #!/bin/bash filename='blacklist.txt' echo Start while read p; ... |
20 окт. 2022 г. · After alot of snipping I receive a list with the file names and im running following ansible task to find and delete them: shell: find . -name ... |
12 нояб. 2014 г. · This command helps to delete all files with matching string and it doesn't depend on the position of string in file name. I was mentioned rm ... |
23 нояб. 2013 г. · This should work: find . -not -name "*.tar" -not -name "*.patch" -type f -exec rm {} \; This is using only one command not using pipes. |
29 мар. 2018 г. · What you could do is: first you list the files that you want to delete. find /dir1 -type f -name '*.json' -mtime +15 -print > toBeDeleted. |
6 февр. 2022 г. · This will delete every file whose name ends in (1) , recursively: find . -name '*(1)' -exec rm {} +. -name '*(1) (1)' to only delete files ... |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |