Search Results

Search: Posts Made By: RudiC
7,342
Posted By RudiC
You may find additional inspiration in the many...
You may find additional inspiration in the many many threads in these fora dealing with df and mailing its results.
7,342
Posted By RudiC
Try this pure shell:df -h | { read REST; while...
Try this pure shell:df -h | { read REST; while read FS SZ AV US PC MT REST; do useSpPer=${useSpPer}'-'$PC; echo 'use '$useSpPer; echo 'res '$PC; done; echo final $useSpPer; }
use -28%
res 28%...
7,342
Posted By RudiC
That behaviour is due to the loop being executed...
That behaviour is due to the loop being executed in a subshell, and the variable's contents is not given back to the parent shell.
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy