(Beginner)
I would like to write a script that will navigate to a specific folder and look for files belonging to the user 'billy' also in subfolders.
I would then like to change the owner of the files found to 'jane' with permissions 777.
Can my syntax be improved upon?
#!/bin/sh
#
cd /path/to/billys/files/
find . -user billy && chown jane && chmod 777
# END
Best regards
I would like to write a script that will navigate to a specific folder and look for files belonging to the user 'billy' also in subfolders.
I would then like to change the owner of the files found to 'jane' with permissions 777.
Can my syntax be improved upon?
#!/bin/sh
#
cd /path/to/billys/files/
find . -user billy && chown jane && chmod 777
# END
Best regards