I want to run command cp to all files with existing pattern somename.en.srt id /path/movies/movie name/ only if file exist and quit if not my command is like below, how to add if, then, else here for all somename.en.srt files?
for file in /share/CACHEDEV1_DATA/Download/Movies/*/*.en.srt
do
/share/CACHEDEV1_DATA/.qpkg/Entware/bin/addbom "$file" "${file%.pl.srt}.1.srt"
done