I am trying to:
Print the output of the command "df -h" (in macOS),but only with /dev/disk* as ouptut. I used the following command:
df -h|awk -F"\t" '/\/[d-v]{3}\/[a-z]{4}[0-9]{1}[s-t]{1}[0-9]{1}/{print}'|uniq -c
The original output of command df-h contains the column headers such as "FileSystem ,size,used etc."I trying to achieve the same via the code.