Language:
switch to room list switch to menu My folders
Go to page: First ... 5 6 7 8 [9]
[#] Sat Feb 03 2018 19:16:19 EST from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

xargs is pretty cool.  I'm not sure about the relative merits of

find path/ -type f -exec my_command {} \;

vs

find path/ -type f | xargs my_command

(Of course there's always good old "rm -fr /" which does all the real work for you...)



[#] Mon Feb 05 2018 14:18:29 EST from Ragnar Danneskjold @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


(Of course there's always good old "rm -fr /" which does all the real
work for you...)


Or rm -rf.

[#] Wed Feb 07 2018 12:55:40 EST from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

rm -fr forces recursion, which is what you want.

rm -rf recursively forces, which makes no sense and is only used by Hitler-equivalent unix admins who think emacs is a legitimate editor.



[#] Mon Feb 12 2018 12:09:47 EST from Freakdog @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

 

Wed Feb 07 2018 12:55:40 EST from IGnatius T Foobar @ Uncensored

rm -fr forces recursion, which is what you want.

rm -rf recursively forces, which makes no sense and is only used by Hitler-equivalent unix admins who think emacs is a legitimate editor.

That's not how this works. LOL



[#] Mon Feb 12 2018 13:30:15 EST from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

This is sort of a long-running joke.  When Ragnar and I first met some 17 years ago, we quickly realized that we had similar outlooks and approaches on most technology-related topics.  So we manufactured something really trivial and stupid to have extremely hostile arguments about.  The order of the "f" and "r" flags to rm(1) to recursively delete a directory became that argument.

It turns out that he'd been doing it the wrong way (rm -rf) all that time, and to this day he stubbornly refuses to use the correct incantation (rm -fr) even after having been told numerous times.  Some people never learn.



[#] Mon Feb 12 2018 15:02:00 EST from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


I'm with Ragnar(!); I thought everyone knew it was rm -rf.

[#] Tue Feb 13 2018 14:49:27 EST from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


Hm.. yep.. rm -rf is etched into my finger-memory...

[#] Tue Feb 13 2018 15:37:08 EST from Freakdog @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I'm afraid that I'm firmly ensconsed in the rm -rf camp, as well.

[#] Tue Feb 13 2018 15:39:08 EST from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Every time you type "rm -rf" God kills a puppy.



[#] Thu Feb 15 2018 09:02:34 EST from Ragnar Danneskjold @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I pulled out the oldest Unix book I've got, but unfortunately it seems to pre-date -f. It does show -rD.

[#] Thu Feb 15 2018 12:27:08 EST from LoanShark @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


And every time you type "rm -fr", Thod kills a kitten.

Go to page: First ... 5 6 7 8 [9]