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
for loop in bash for files
#!/bin/bash
FILES=/path/to/*
for f in $FILES
do
echo "Processing $f file..."
# take action on each file. $f store current file name
cat $f
done
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