under command :gpart show
i get the output
=> 34 31457213 ada0 GPT (15G)
34 128 1 freebsd-boot (64k)
162 29360000 2 freebsd-ufs (14G)
29360162 1572864 3 freebsd-swap (768M)
30933026 524221 - free - (10GB)
how can i extract just 14G from 3rd line and 10GB from last line?
the 14/10GB values are never the same, which makes my work harder to do.
i manage to get some results using
cat test | sed 's/\|/ /' | awk '{print $6}{print $5}' but i still have to extract just that info,
any ideas? please thanks.
freebsd-ufspartition, you should filter on that rather than hoping it will always be line 3...