With the command: df -h | grep /dev/md/dsk/d0 I get the following result:
/dev/md/dsk/d0 4.8G 4.0G 792M 84%
I want to manipulate this output to get 792M
In theory, I could look for 1 to 3 digits followed by an “M” to get 792M
I tried to learn from regular expression tutorials but I have absolutely no clue how to get started and solve this issue.
If you just need to get out the 4th element I would do: