shell programming: Defined Function

The first way

function hello

{

echo "hello"

}

 

The second way

hello()

{

echo "hello"

}

call function

Command line: hello

Guess you like

Origin www.cnblogs.com/soymilk2019/p/11723712.html