I am writing a bash script and need to cd into a directory, but the directory name is somewhat dynamic. It always begins with package-{then dynamic version}. How do I script this in bash?
cd package-
bash
I am writing a bash script and need to cd into a directory, but the directory name is somewhat dynamic. It always begins with package-{then dynamic version}. How do I script this in bash?
cd package-
Best Answer
I'm not sure I get your requirement fully.
What about
cd package-*
? If there are several matches, which one would you like to choose?