I am trying to list all the files in the directory but how would you separate each of the files by a blank line? basically each file displayed by separated by a blank line? I am
Your loops are close. However, using a traditional bash for loop with ls is dangerous - what happens if your filenames contain spaces? An easy solution with awk: