I would like to delete folders with specified regex, but I could not build a good regex.I have:/root  /my-picture-2015    /my-picture-2015-1    /my-picture-2015-2  /my-picture-2015-1  /my-picture-2015-2  /my-picture-2015-3etc.Directory my-picture-2015 is a backup which I would like restored. It could stay in this directory, but I have to delete all my-picture-2015-X only from root directory. Directories in my-picture-2015 have to stay.
Delete folders using regex
regular expression
Simply:rm -rf /root/my-picture-2015-*/