Re: find exec rm

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

 



On 07/13/2017 11:27 AM, Tom Horsley wrote:
> On Thu, 13 Jul 2017 10:50:50 -0700
> Rick Stevens wrote:
> 
>> Of course, you COULD use "-delete" in the find command rather than
>> doing an "-exec rm {} \;":
> 
> Or for anything that would run a command that takes a
> list of arguments (rm, chown, chmod, etc) you could
> use -print0 in the find command and pipe it to xargs -0

I think the confusion the OP had was that he/she didn't realize that the
"\;" bit of the line was part of the find command and didn't separate
the find command from the subsequent "rm" command on that line. They
needed "\; ;rm -f ........." to do what they wanted.

Just one of the oddities of stringing commands together in a shell.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-   Sarchasm: The gulf between the author of sarcastic wit and the   -
-                     reader...who doesn't get it.                   -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux