Answers for "linux bash loop through files in directory"

14

bash loop over files in directory

#!/bin/bash
for filename in /Data/*.txt; do
    ...
done
Posted by: Guest on May-25-2020
1

loop through directories bash

#loops only through directories
for d in */ ; do
    echo "$d"
done
Posted by: Guest on March-28-2020

Code answers related to "linux bash loop through files in directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language