Wednesday, 18 September 2013

How do i assign an to ls in linux Bash?

How do i assign an to ls in linux Bash?

array=${ls -d */}
echo ${array[@]}
I have three directories: ww ee qq. i want them in an array and then print
the array.

No comments:

Post a Comment