Here is my problem. I want to store the directory of a specific file in a variable via terminal but in my folder there are many files let say one of them is test1432.config and the other is test1432-busybox.config and the other files whose extention are not .config. So I decided to write
fst_directory="%s" %(co_directory[3:])+ "/*.config"
But If I do that in this way, it also takes the test1432-busybox.config doesnt it ? How could I do that ? thanks in advance
EDIT
The only differences between two file is the busybox part. I mean fileName-busybox.config and fileName.config. I always want to choose fileName.config
EDIT2
Since nobody share the solution. I created my own. In this case the busybox is not necessary file for me . So I decided to delete them and after that I can choose the true file easly. If the file is important and you could not delete it.You can move it somewhere else and move back after the operation.