bash - Put pipe value into variable -



bash - Put pipe value into variable -

this question has reply here:

how redirect grep output variable? 1 reply

i'm new in bash scripting world...

i'm trying value pipe action var.

something like:

result = $(ls /usr/bin | dmenu)

the thought set files list standar menu (dmenu) so, when user select choice, want know wich 1 selected , work alternative example, execute file.

the $result not getting value.

thanks help

remove whitespaces before , after =:

result=$(ls /usr/bin | dmenu)

bash shell

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -