How do I pass a command line argument in Linux?

Nguyễn Trà

New member
How do I pass a command line argument in Linux?
Answer
To pass a command line argument we can simply write them after script name separated with space. All command line parameters can be access by their position number using $. A sample example of passing command line argument to shell script.
 

Tìm kiếm

Back
Top