Shell Script to delete files
Nils Kassube
kassube at gmx.net
Sat Apr 20 09:31:30 UTC 2013
Akash Jain wrote:
> 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
It isn't clear where your script starts, so it is difficult to guess
which line the shell doesn't like. But I would suggest to carefully
check the line above.
Nils
More information about the ubuntu-users
mailing list