https://stackoverflow.com/questions/20796200/how-to-loop-over-files-in-directory-and-change-path-and-add-suffix-to-filename
#!/bin/bash
for filename in /Data/*.sql; do
for ((i=0; i<=3; i++)); do
./MyProgram.exe "$filename" "Logs/$(basename "$filename" .txt)_Log$i.txt"
done
done
-------------------------------------------------------------------------------------
#!/bin/bash
for filename in *.sql; do
for ((i=0; i<=3; i++)); do
echo "$filename"
done
done
ไม่มีความคิดเห็น:
แสดงความคิดเห็น