Search Results

Search: Posts Made By: mcoblefias
15,445
Posted By Corona688
You can also do something like this: ...
You can also do something like this:

./myscript.sh <<EOF
name
age
EOF

Or if you can rewrite the script, just pass them in as parameters: #!/bin/sh

NAME="$1"
AGE="$2"

./myscript name...
15,445
Posted By itkamaraj
you can pass it as arguments and read the value...
you can pass it as arguments and read the value using $1 and $2 inside the script


./ask.sh "Mickey" "23"


otherwise, use it like this


$ cat d.sh
#!/bin/sh
read a b
echo "a value...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 12:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy