I am trying to write a script that mimics cp where there is a source and destination input. how can I count the number of arguments given on the command line
for example
./myscript src dest
check that at least 2 things were given.
See Question&Answers more detail:os