Answers for "shell script take input from command line"

2

Select the command to read the input from the User in shell scripting?

read <variable>
Posted by: Guest on March-16-2021
1

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
Posted by: Guest on June-13-2020
3

run sh with parameter

> ./myscript myargument
myargument becomes $1 inside myscript.
Posted by: Guest on September-04-2020

Code answers related to "shell script take input from command line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language