I have the following script:
#!/bin/sh
cd $2
ls *.$1 | wc -l
I run it with: ./myct java test
where java and test are parameters which I pass
In general, I recently started to learn shell scripting and I like to play around with it, so I was wondering if it's possible to make this script even shorter?
Thanks