Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17838

augeas in a loop not working

$
0
0

why my /tmp/tester is empty? I expect:

 Hello foo he is here Hello boo he is here Hello wee he is here Hello haa he is here $array = ['foo','boo','wee','haa'] $array.each |String $arr|{ augeas {"tmp $arr": context=>"/tmp/tester", changes => [ "set Hello $arr\n He is here", ], } } 
submitted by /u/juniorsysadmin1
[link] [comments]

Viewing all articles
Browse latest Browse all 17838

Trending Articles