Open a text file to a specific line number
May 28th, 2007 - Command Line, Mac OS X, Tips & Tricks
John Talbot writes in with this useful terminal tip: “I spend a lot of time writing scripts and editing text through the terminal, so if I get a script error telling me that line 240 is messed up, I use the following command to quickly access the problematic line: nano +240 script.sh” I found this to be a really useful command, if you’re unclear of the syntax it’s simple: nano +linenumber filename
Posted by: David Mendez

Order Mac OS X 10.6 Snow Leopard today from Amazon.com - $25!

Write a comment