Running Simple CommandsHello, World!Komodo's Run Command feature offers another way to run commands that would otherwise be run on the system command line. You will start with a simple echo command.
![]() The Command Output windowOutput from commands is displayed on the Command Output tab. You can also use the Command Output window to interact with commands that you run; if the command accepts input, then you can enter it directly into the command on the Command Output tab. In addition, the Command Output tab has the following features:
The "Toggle Raw/Parsed Output View button ![]() Inserting Command OutputYou can insert command output into a document using the Insert output option.
![]() Filtering Parts of Your DocumentThe Pass selection as input option passes selected text to the command that you specify. Use this option together with the Insert output option to easily filter selected regions of your document.
Note that the Pass selection as input and Insert output options were selected automatically. If you have one or more lines selected in your document, the Run Command expects that you want to filter the selected lines. Use the command line utility, grep, to filter lines of text. Perhaps, for example, you only like red frogs and want to remove frogs of all other colors from the list. Note that this tutorial assumes you have the grep utility installed on both your system and your PATH. Grep is a common Linux utility that searches for text and characters in files. If you are running Windows you may not have it installed. There are a number of free versions available on the World Wide Web. Search using the keywords "grep for Windows."
|