Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How I can store the output of a linux command in a variable

$
0
0
Is it possible to store the output of an UNIX command in a variable like - $myversion = generate ("/bin/ls -l /usr/lib/jvm|/bin/grep -v lrwxrwxrwx|/usr/bin/tail -1|/bin/awk '{ print $9 }'") If not please advice how we can define dynamic value in a variable.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>