I have several config folders (ex: .gnome
, .mozilla
) that I need to delete across a large array of directories. They all start with two alphabetical characters (ex: ag52156
, ge51789
) and are located in the same place.
I don't write bash so I wouldn't know how to start tackling this in the first place - but what should I look into so that I can write this?
尝试这个 :
find [a-z][a-z]* -type d \( -name .gnome -o -name .mozilla \) -exec rm -r {} \;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.