sonicb00m
February 8th, 2012, 03:22 PM
I would like to use the locate command to find a bunch of files and then iterate through the results to remove them.
Initially I used the find command but it's too slow
find / -name "fglrx" -exec rm -rf {} \;
So my idea was to place the results of locate into an array and then iterate the array and remove the found file.
Can anyone show me how to do this or even give me a more optimal solution?
Thanks
Initially I used the find command but it's too slow
find / -name "fglrx" -exec rm -rf {} \;
So my idea was to place the results of locate into an array and then iterate the array and remove the found file.
Can anyone show me how to do this or even give me a more optimal solution?
Thanks