You're viewing a comment by Nick Coleman and its responses.

Nick Coleman Permalink
September 11, 2012, 05:04

Just to note that the Here String ("<<<") is not just for text strings, but is subject to normal Bash word expansion. This means you can do things like cat <<< "$(/usr/bin/date)".

I use this construction nearly every day. A common use case for me is with the at command, which doesn't accept command line input for some silly reason. I work around it by doing: at 5pm <<< "$(gxmessage 'Take steak out of freezer')".

Comment Responses

Nick Coleman Permalink
September 11, 2012, 08:25

Oops, this example is wrong, you don't use $(...).

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "disk_342": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.