...
Code Block |
---|
find / -user oldname -exec chown newname:newgroup {} \; |
Find and remove old dirs (jenkins workspaces)
Code Block |
---|
find /opt/jenkins/workspace -mindepth 1 -maxdepth 1 -type d -mtime +30 -print | xargs /bin/rm -Rf |
...
Code Block |
---|
find / -user oldname -exec chown newname:newgroup {} \; |
Code Block |
---|
find /opt/jenkins/workspace -mindepth 1 -maxdepth 1 -type d -mtime +30 -print | xargs /bin/rm -Rf |