How does ${!#} work in bash to get the last command-line argument? – unix.stackexchange.com 13:54 Posted by Unknown No Comments From the Advanced Bash-Scripting Guide, to get the last command-line argument: Or: lastarg=${!#} This is an indirect reference to the $# variable. Note that lastarg=${!$#} doesn't work. from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitWhat is meant by the term "galvanic contact" in this sentence? – electronics.stackexchange.comWhat's the easiest way to prevent a voltage input getting higher than a fixed value? – electronics.stackexchange.comAre shudras allowed to wander near sacrifices? – hinduism.stackexchange.comHow does Santa fit down the chimney? – worldbuilding.stackexchange.comCompact surfaces whose Gaussian curvature is a subharmonic function – mathoverflow.netWhat is this attachment for on this veg peeler? – cooking.stackexchange.com
0 Comment to "How does ${!#} work in bash to get the last command-line argument? – unix.stackexchange.com"
Post a Comment