I have a loop with cases
I am working on Bourne shell
for file in *.${Today}*.csv *.${Today}*.txt\
do
case ${file} in
sun_detail)
do something
;;
sum)
do something
;;
mod)
do something
;;
*)
do something
;;
I have a 50 files, three from them fall in three cases. I thought all others should get to common case *). But the first file got to that case and program exits without errors
Could you please help me with this?
Please apply some care when posting - people can't tell if what you post is sloppy typing or copying or erroneous coding causing misbehaved programs.
I don't think continue is necessary -
Although from man bash , this should be valid for sh , too.
EDIT: Looking at your other thread, I see that your reasoning is a bit different. Another reason for a) no double posting, b) precise and detailed posting.