#!/bin/bash # directory="/data/angcb/home/kpiyu/ANGCB/scripts/202506_flux_test" directory="/data/angcb/home/kpiyu/ANGCB/scripts/202506_flux_test_64" # # Using find command to iterate over all files # find "$directory" -type f | while read -r file; do # echo "Found file: $file" # amlt run $file --description 'angcb' # break # done #!/bin/bash find "$directory" -type f | while read -r file; do # Get the basename of the file filename=$(basename "$file") # # Check if the filename is 101.yaml or 102.yaml # if [ "$filename" == "101.yaml" ] || [ "$filename" == "102.yaml" ]; then # continue # fi # if [ "$filename" == "101.yaml" ]; then # # echo $file # continue # fi # if [ "$filename" == "102.yaml" ] || [ "$filename" == "104.yaml" ] || [ "$filename" == "106.yaml" ] || [ "$filename" == "108.yaml" ] || [ "$filename" == "109.yaml" ] || [ "$filename" == "110.yaml" ] || [ "$filename" == "118.yaml" ] || [ "$filename" == "120.yaml" ] || [ "$filename" == "121.yaml" ]; then # echo $file # fi echo $file # amlt run "$file" --description 'angcb' # break done | xargs -n 1 -I {} bash -c 'amlt run "{}" --description "angcb {}"'