Posts by Ed Morton
Populate an array of the file names and then print how many entries are in the array: $ ( shopt -s nullglob; files=( .* * ); echo "${#files[@]}" ) 124 That will work correctly even if your fi...
Answer
Populate an array of the file names and then print how many entries are in the array: $ ( shopt -s nullglob; files=( .* * ); echo "${#files[@]}" ) 124 That will work correctly even if your fi...