Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] How to cope with strange filenames in bash?



On 03/07/07, Chris BALUTA <baluta@example.com> wrote:

find . -name "*Doremi--Kenichi*" -exec mv {} k1.rar \;
[...]
The {} and the \; are both absolutely needed.

It is probably safer to quote or otherwise escape the {}, e.g.

find . -name "*Doremi--Kenichi*" -exec mv '{}'  k1.rar \;

or

find . -name "*Doremi--Kenichi*" -exec mv \{\}  k1.rar \;


-- Cheers, Josh


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links