|
|
Question : pattern match in shell script
|
|
How do I pattern match DL_XXX in a shell script. I want to ignore directories starting with DL
can I do somethign like
$dirName != "DL%"
|
Answer : pattern match in shell script
|
|
if [[ "$dirName" == DL* ]] ; then echo ignore ; fi
|
|
|
|