smack-team / smack

Smack userspace
GNU Lesser General Public License v2.1
41 stars 33 forks source link

chsmack 1.1: add a recursive behaviour #103

Closed jobol closed 8 years ago

jobol commented 10 years ago

Add an option to apply change to all files of subtrees, descending the subtree hierarchy I currently use the utility find but an option could be good.

ravizombie commented 8 years ago

am thinking of extending it to have the recursive option. how do you use it currently ?

jobol commented 8 years ago

Great news! Implementing an option would be easier in some case than

find . -type f -exec chsmack -a User {} \;

or

find . -type f | xargs -n 1 chsmack -a User

or

chsmack -a User $(find . -type f)
rafal-krypa commented 8 years ago

A pull request would be welcome. As @jobol wrote, there are several ways around the lack of option. But several analogous tools handle "-r" option and chsmack could too.