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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -