command output to varible!!!
Hi, I was wondering how to store a commands output in a varible this is example of what I have been trying
$z = ls -a ~ | grep .path the out put of this command is ".path"
but will not store in this varible and someone please help me im using bash scripting. thanks ahead of time