В каталоге test
много файлов python.
file="test/unit/python/tests.py"
Я хочу как-то вызвать все скрипты Python для модульного тестирования.
python -m unittest test.unit.python.tests
Как программно добавить подстроку "/test/unit/python/tests.py" в "test.unit.python.tests" в Bash?
$ echo $file ===> /test/unit/python/tests.py
$ '${file.???}' ===> How can I get test.unit.python.tests
=> or test.unit.python.tests.py