Sample Header Ad - 728x90

How to read keyboard input and assign it to a local variable?

4 votes
1 answer
1464 views
I have this very simple script: #!/bin/bash read local _test echo "_test: $_test" This is the output. $ ./jltest.sh sdfsdfs _test: I want the variable _test to be local only. Is this possible?
Asked by mrjayviper (2253 rep)
Nov 12, 2019, 02:51 PM
Last activity: Nov 12, 2019, 03:20 PM