Pages
Home
Links
Wednesday, January 19, 2011
Indirect reference in bash programming
Indirect reference is a method in programming where you pass the value of one variable to another variable.
For example in bash programming $1 variable is the value of first argument so in order to reference it we can write the program as
#!/bin/bash
user=1
echo ${!user}
More details can be found
here
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment