Shell Script to delete files
Akash Jain
akash.delhite at gmail.com
Sat Apr 20 08:42:56 UTC 2013
My aim is to delete more than 5 days old files which are no longer used
by any process. As a starter I have written following script, but it
does not work, says line 10 command not found.
|HOME=~/var
cd $HOME
for fin `find . -type f`; do
if [`lsof -n $f`]; then
echo $f
fi
done
Thanks !
Akash
|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130420/2aca6a9a/attachment.html>
More information about the ubuntu-users
mailing list