Bash Loop sobre archivos en el directorio
#!/bin/bash
for filename in /Data/*.txt; do
...
done
The Code Doctor
#!/bin/bash
for filename in /Data/*.txt; do
...
done
while read p; do
echo "$p"
done <peptides.txt
#!/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