selection as command argument in shell menu

Gerald Grabner gerald.grabner at gmx.net
Sat Mar 10 20:16:21 CET 2007


Tim Hubberstey wrote:
> Gerald Grabner wrote:
>> Hi there,
>>
>> I am wondering if it is possible to pass the selection as an argument
>> to a command being called from the shell menu. It only seems possible
>> for the filename and the line number. Does anybody know how to pass
>> the selected text?
>>
>> Many thanks,
>> Gerald
> 
> Check out 'xargs'. It takes data from STDIN and passes it as argument(s)
> to a specified command.

Hey, that's really easy, thanks a lot!

I didn't know/guess that "Command Input" means STDIN. Maybe this info
should go into the docu...

Cheers,
Gerald


More information about the Discuss mailing list