Assigning any number to the variable in cshell script

Hello Guys,

I would like to ask you for a favor. Could you please help me how can I assign any number as the parameter to a, from stdin (-c), in the following command line by using the 'switch' in a script?

awk '$8>a {print "File name:" $5,$8}'

I would also appreciate if you can share any possibilietes how to add -h help button into the above script.

Thank you in advance for your kind help.

Padavan

I'm lost:

  1. What does standard input have to do with "-c"?
  2. What language are you talking about?
    [list=a]
  3. Are you saying you want to add code to your awk script to assign a value to the variable a ?
  4. Do you have a shell variable that you want awk to use to assign a value to the awk variable named a ?
    [/list]
  5. Is this awk script part of a shell script or are you writing a X application? (Or where is this help button supposed to be displayed?
  6. What operating system are you using?
  7. What shell (or command interpreter) are you using?
    [list=a]
  8. Is switch part of the syntax of the command interpreter you're using?
  9. Do you mean you want to use a command-line option?
  10. Should your script have a default value for this variable that can be overridden by a command-line option?
    [/list]
  11. What is the format of the input file your awk script is reading?
  12. What is the name of the input file your awk script is reading?