[lkml]   [1998]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Directory name problem...
    Hi Juha.

    > :>> % Q> #!/bin/sh
    > :>> % Q> XYZZY="`find / -name core`"
    > :>> % Q> for LOOP in `find $XYZZY | sort -ru` ; do
    > :>> % Q> rm -fr $LOOP
    > :>> % Q> done

    > :>You know, interesting things will happen when he runs that script
    > :>and there are *not* any files named core around...

    > Nothing interesting happena as
    > rm -rf
    > as itself does nothing and won't give any error message.

    On my system, `find` lists EVERY file, so rm is fed a list of every
    file on the system, and promptly deletes them...

    Best wishes from Riley.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:45    [W:0.022 / U:25.072 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site