Select the command to read the input from the User in shell scripting?
read <variable>
Select the command to read the input from the User in shell scripting?
read <variable>
get additional parameters linux scripting
$ cat myscript
#!/bin/bash
echo "First arg: $1"
echo "Second arg: $2"
$ ./myscript hello world
First arg: hello
Second arg: world
run sh with parameter
> ./myscript myargument
myargument becomes $1 inside myscript.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us