Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use OS X's trash in a Finder-like way from Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use OS X's trash in a Finder-like way from Terminal
Authored by: snuggles on Apr 22, '10 09:40:35AM

Nice hint. But a few caveats...

While redefining 'rm' might seem like a nice way to protect yourself, I think it's ultimately dangerous -- you get used to 'rm' being undoable and then, when you're on another system that hasn't been modified, you forget and end up hosed.

Also, there's no need to define a 'seq' function. Mac OS X has this already; it's just called 'gseq'.



[ Reply to This | # ]
gseq
Authored by: GaelicWizard on Apr 22, '10 04:48:34PM

Not on my system. The fact that it starts with "g" sounds like its from GNU. Mac OS X doesn't ship with much (any?) GNU software. What does "type gseq" in your Terminal say?



[ Reply to This | # ]
jot (not gseq)
Authored by: snuggles on Apr 23, '10 06:53:36AM
Bargh... my bad. It's in MacPorts. The Mac OS X (BSD) equivalent of seq is jot. The syntax is slightly different, but it does the same job.

[ Reply to This | # ]
re: jot (not gseq)
Authored by: GaelicWizard on Apr 24, '10 11:01:57AM

After checking jot out, I figured out how to make it work like seq. "jot - 2 6 3" works just like "seq 2 6 3".

Thanks!

I'll be updating this script on sourceforge (see hint for link) shortly.

JP

Edited on Apr 24, '10 11:10:44AM by GaelicWizard



[ Reply to This | # ]
Use OS X's trash in a Finder-like way from Terminal
Authored by: alexk82 on Apr 27, '10 03:48:56PM

since i use a mac at home and at work i use on linux (ssh into prod boxes etc) i'll have i agree, i like to think of rm as dangerous and i need that fear so i'll be very careful when i use it.



[ Reply to This | # ]