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.

[#] Sun Feb 18 2018 00:56:24 EST from IGnatius T Foobar @ Uncensored

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

If thod threatened our kitten, my daughter would stab him in the face with a Buick.

The first time I learned those options, it was some 35 years ago when I was reading some of the internal scripts that came with Xenix. One of them used "rm -fir" to remove an entire directory and its contents. Needless to say, "f" and "i" aren't supposed to be used together, because they specify opposite things. Leave it to Microsoft to be brilliant that way, I guess.

Ah, the good old days, when Xenix was supposedly the future of mainstream microcomputing...

[#] Tue Feb 20 2018 10:59:22 EST from LoanShark @ Uncensored

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


I guess, if you want to remove the whole tree, "rm -fir" is the way to do it. *Ducks*

[#] Tue Feb 20 2018 16:54:48 EST from IGnatius T Foobar @ Uncensored

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

Umm ... yeah. That will delete most files, but a few email clients will be left behind. pine and elm binaries, in particular, do *not* respond to "rm -fir"

[#] Wed Feb 21 2018 11:16:58 EST from Freakdog @ Uncensored

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

 

Tue Feb 20 2018 16:54:48 EST from IGnatius T Foobar @ Uncensored
Umm ... yeah. That will delete most files, but a few email clients will be left behind. pine and elm binaries, in particular, do *not* respond to "rm -fir" 

I would have thought that pine, of all of them, would be especially responsive to that command.



[#] Wed Feb 21 2018 13:24:15 EST from fleeb @ Uncensored

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


Or elm, for that matter.

Which tears it for me, my next executable should be named 'oak', to ensure it can't be removed from the file system easily.

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