bash - Put pipe value into variable -
bash - Put pipe value into variable -
this question has reply here:
how redirect grep output variable? 1 replyi'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
Post a Comment