On 02/27/2008 09:39 AM, Jerome BENOIT wrote:
to clean some directories of mine, I use
rm -rf *
but files named as `.log' are not removed.
Dot files are not expanded by * - to remove just the .log files, for
example:
find ./ -type f -name .log -exec rm -rf {} \;
To remove everything in $PW
Jerome BENOIT wrote:
> Hello List,
>
> to clean some directories of mine, I use
>
> rm -rf *
>
> but files named as `.log' are not removed.
>
> Is there a better way to do so ?
Go to the previous directory and then remove the directory using rm -rf.
This will remove other hidden files along w
> Hello List,
>
> to clean some directories of mine, I use
>
> rm -rf *
>
> but files named as `.log' are not removed.
>
> Is there a better way to do so ?
>
> Thanks in advance,
> Jerome
Your problem is that the shell doesn't expand the '*' to hidden files.
You could do '.*', but that would
Hello List,
to clean some directories of mine, I use
rm -rf *
but files named as `.log' are not removed.
Is there a better way to do so ?
Thanks in advance,
Jerome
--
Jerome BENOIT
jgmbenoit_at_mailsnare_dot_net
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe".
4 matches
Mail list logo