osx yosemite - Deleting folder on my OS X 10.10.5 by executing a file -


i have list of files want delete on mac, how automate without entering each terminal

"sudo rm -r foldername"

here list of folders:

/library/application support/vmware /library/application support/vmware fusion /library/preferences/vmware fusion ~/library/application support/vmware fusion ~/library/caches/com.vmware.fusion ~/library/preferences/vmware fusion ~/library/preferences/com.vmware.fusion.lssharedfilelist.plist ~/library/preferences/com.vmware.fusion.lssharedfilelist.plist.lockfile ~/library/preferences/com.vmware.fusion.plist ~/library/preferences/com.vmware.fusion.plist.lockfile ~/library/preferences/com.vmware.fusiondaemon.plist ~/library/preferences/com.vmware.fusiondaemon.plist.lockfile ~/library/preferences/com.vmware.fusionstartmenu.plist ~/library/preferences/com.vmware.fusionstartmenu.plist.lockfile 

you use in terminal remove files list , recursively clear out directories in list.

while read p; rm -r $p; done <list.txt

list.txt list of files/directories each entry on own line.

this loop on list , call rm -r file/directory name.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -