shell script gets passed as a parameter

1 Scripting

#! / bin / bash
 echo  " first parameter " $ 1 
echo  " second parameter " $ 2

2 explanation

  $ N represents the first of several parameters $ 0 for script command itself

3 implementation of the results

  

 

Guess you like

Origin www.cnblogs.com/QuestionsZhang/p/10992923.html