OS:Yocto
I want to assign the shell output to a variable,
but get the error "test.sh: line 3: out: command not found".
How to do that ...?
this is my code:
#!/bin/bash
out = "$(ls /dev/ | grep "tty" | wc -l)"
echo"$out"
I tried this: How to set a variable to the output from a command in Bash?