Search This Blog

Saturday, September 30, 2023

Shell scripting

Read the user inputs and execute the script

Example1: 

echo  -n  "Please type your required info"

read info

echo "You're required information is: $info"

Example2:

read -p "Please type your required info" info

echo  "You're required information is: $info""


Example and Example2 both gives the same but, in the example1 there is no read -p

Example2 : read -p --> it will ask a query and assigned to var

No comments:

Post a Comment

What is the sanity checks you have done for STA?

 Sanity checks for STA: Linking Checks: We need to check., is there any missing modules or missing pins in a library. this is done by link c...