bash loop over files in directory
#!/bin/bash
for filename in /Data/*.txt; do
...
done
bash loop over files in directory
#!/bin/bash
for filename in /Data/*.txt; do
...
done
bash loop over files in file
# Basic syntax:
for filename in `cat file_of_filenames.txt`; do
echo $filename
done
# This iterates through each of the filenames listed in the
# file_of_filenames.txt
# Note, the filenames should be separated by spaces or new-lines
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us