![notepad for mac cmd notepad for mac cmd](https://digitalmediaglobe.com/wp-content/uploads/2019/10/Open-Notepad-with-CMD-5-300x169.jpg)
With the "cat" command's line numbering, we can identify the syntax error quickly (click for larger view). The "cat" command offers an option to number its output, so if you type "cat -n" followed by a single space, then drag your document to the Terminal window and press Enter to execute the command, it will show the document's contents in a numbered list. The final option in the OS X Terminal is to use the "cat" command which will output a document's contents line-by-line to the Terminal window, and is a great way to preview a document.
![notepad for mac cmd notepad for mac cmd](http://cybernetnews.com/wp-content/uploads/2011/03/program-notepad.png)
#Notepad for mac cmd code#
While the need to locate a specific line in a text file may not be a very useful feature in regular prose text, for managing structured code such as scripts and XML files that are common in OS X, being able to identify a specific line or two may be quite useful.