Home‎ > ‎unix/linux‎ > ‎bash‎ > ‎

Command output to a variable



DIR="$(ls -la)"
echo " dir is $DIR"




Reference:



Comments