How to calculate the overall number of arguments that have been passed to a script?

DWQA QuestionsCategory: LinuxHow to calculate the overall number of arguments that have been passed to a script?
Editor Staff asked 2 months ago

How to calculate the overall number of arguments that have been passed to a script?

1 Answers
Editor Staff answered 2 months ago

It is done by a command $#. The same is required to know the overall load on a script. Every limit has a limit on handling the same and users have to check it often to make sure script remains in the running mode and doesn’t get fail.