Skip to content
Advertisement

Unable to get correct output in linux script

JavaScript

I wanted to get the remaining(free) percentage of RAM usage as output storing in variable for further processing. Instead m getting $ac output as

JavaScript

Please help

Advertisement

Answer

JavaScript

works fine for me.

(BTW, awk can do grep’s work too:

JavaScript

)

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement