Reputation: 31
in a bash script what means < $1 >
? It means that the file is opened to read from it?
Upvotes: 1
Views: 3328
Reputation: 3367
$1
is the first parameter after the name of the script.
If you call a script like this: myscript.sh param1 param2
$0
will be myscript.sh
$1
will be param1
$2
will be param2
Upvotes: 2