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


Click here to return to the 'Don't accidentally open huge text files from the Command Line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Don't accidentally open huge text files from the Command Line
Authored by: robleach on Aug 21, '12 11:03:29AM

Note, the code only manipulates the command if -e is supplied, so you can open other file types without worry. Besides, you can escape the command using "\open ...". And as far as argument argument handling, I have not figured out a way in bash to refer to arguments to reproduce tcsh's ability using "!*" and "!!:3-5", etc.. It could just be that I'm not familiar enough with bash to know how to do it.



[ Reply to This | # ]