

The oft forgotten tac can be a lifesaver when you want the last instance (or last few instances) of a certain line, but aren't sure exactly how far back to tail. The uses of head and less should be pretty obvious.
#BEST TEXT EDITOR FOR MAC REDDIT PRO#
Pro tip: Additionally, head, less, and tac frequently come in handy with large log files. If you're actually thinking of "editing" a large file, you should probably consider learning a bit of sed, awk, and grep (particularly awk, which is really great for doing all kinds of nifty things with log data). If you really need to edit a huge file, vim and other text editors will work OK, but IME any real text editor will be sluggish to open a huge file. It automagically works with gzipped and bzipped files, so less foo.gz and less foo.bz2 will work ok.Most other vi-style shortcuts work as well. You can seek to the end of a file immediately, by hitting G (note: you may need to hit Ctrl-C if it's trying to compute line numbers and taking a long time).

There isn't anything else that compares with it in terms of the speed in which you can open and seek around in large files. I just wanted to second the nomination of less. Are you interested in promoting your own content? STOP! Read this first.For posting job listings, please visit /r/forhire or /r/jobbit.Do you have something funny to share with fellow programmers? Please take it to /r/ProgrammerHumor/.Do you have a question? Check out /r/learnprogramming, /r/cscareerquestions, or Stack Overflow.Direct links to app demos (unrelated to programming) will be removed.If there is no code in your link, it probably doesn't belong here. Just because it has a computer in it doesn't make it programming.That means no image posts, no memes, no politics.Please keep submissions on topic and of high quality.r/programming is a reddit for discussion and news about computer programming
