[TxMt] command output snippet newline

Gerd Knops gerti at bitart.com
Mon Nov 7 20:42:59 UTC 2005


On Mon, Nov 7, at 2:21 PM, thomas Aylott wrote:

> hello.
> How do I keep a command output from sending in an extra newline?
>
> I've got a command like this:
> echo $\{1:`expr $TM_SELECTED_TEXT + 1`\}

echo -n $\{1:`expr $TM_SELECTED_TEXT + 1`\}

should work. by default echo add a newline, -n suppresses that.

Gerd





More information about the textmate mailing list