GustavoKatel / pushbullet-cli

Access Pushbullet from the command line
MIT License
282 stars 31 forks source link

Newline not possible #42

Closed sidneywidmer closed 7 years ago

sidneywidmer commented 7 years ago

I tried \n and \\nand none arrived as newline. Is it possible to send a linefeed in a note?

GustavoKatel commented 7 years ago

You can achieve that by forcing your terminal to interpret \n as a new-line. Something like this would do it:

echo -e "This is\na new line" | pb push

From the echo's man page:

-e enable interpretation of backslash escapes

sidneywidmer commented 7 years ago

Well, that was easy :) Thank you!