Using external operating system commands decreases robustness and portability of code.
Remove instances of the bang (!) operator from your code.
!