Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

finding out the number of parameters entered

hi, i would like to know how i can echo to screen the number of parameters entered in a bourne shellscript program

ie. if the person types "hello hello hello hello hello" i want it to echo to screen "5 parameters were entered"

any help appreciated, thanks
0
seremaz
Asked:
seremaz
1 Solution
 
avizitCommented:
#!/usr/bin/sh

echo "$# parameters were entered"

0
 
seremazAuthor Commented:
i already figured this out, but as you answered me right ill give u the points anyway :p
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now