Can someone explain how to check the bash shell script?
For example, I have a .sh file with this code in it ...
#!/bin/sh for file in *.txt; do mv "$file" "`basename $file .txt`.doc" done
How do I write a test? As in Java, you have unit testing where you write code like assertEquals to test code that produces the desired result.
bash shell
Mr teeth
source share