automating fdupes
am 04.10.2007 16:43:28 von Alexis.happyphoenix
Hi
I want to run fdupes so that duplicates are automatically deleted, as
I have 1000's (the result of deleted file recovery overkill!). So far
I have:
while [ read ]; do
echo 1
done <> fdupes -rd
I've tried a couple of variants that don't work, haven't been able to
test the above as written down when not at the Linux box. Am I doing
the Right Thing here? I think I need a different way to do the
redirection...
Tia,
Alexis
Re: automating fdupes
am 04.10.2007 17:23:33 von Icarus Sparry
On Thu, 04 Oct 2007 07:43:28 -0700, Alexis.happyphoenix@googlemail.com
wrote:
> Hi
>
> I want to run fdupes so that duplicates are automatically deleted, as I
> have 1000's (the result of deleted file recovery overkill!). So far I
> have:
>
> while [ read ]; do
> echo 1
> done <> fdupes -rd
>
> I've tried a couple of variants that don't work, haven't been able to
> test the above as written down when not at the Linux box. Am I doing
> the Right Thing here? I think I need a different way to do the
> redirection...
>
> Tia,
> Alexis
If you have the "yes" program on your machine I think you want to run
yes 1 | fdupes -rd .
(try it in a test directory first, and maybe even try "yes all" instead
of "yes 1").
If you don't have "yes" then use
while : ; do echo all ; done | fdupes -rd .
Re: automating fdupes
am 05.10.2007 13:53:56 von Alexis.happyphoenix
On 4 Oct, 16:23, Icarus Sparry wrote:
>
> If you have the "yes" program on your machine I think you want to run
>
> yes 1 | fdupes -rd .
>
> (try it in a test directory first, and maybe even try "yes all" instead
> of "yes 1").
Yey, it works! I had no idea "yes" existed - what a handy little app!
Many thanks
Alexis