On Wednesday 02 January 2008 15:05, Istvan Gabor wrote:
> How can I delete only soft link files from a directory using the
> command line? I have too many files to delete them one by
> one.

    find . -type l -print0 | xargs -0 rm

simpler, but more dangerous if the names contain weird characters:

    find . -type l | xargs rm             (not recommended!)

In any case, try it with "echo" first instead of "rm" so you can get an idea 
what will happen.


CU
-- 
Stefan Hundhammer <[EMAIL PROTECTED]>                Penguin by conviction.
YaST2 Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Nürnberg, Germany
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to