How can I store the first line of output to print as a header after matching all lines that start with
Right now I'm calling
df twice, but I would like to do it in one pass with awk.
df -h | grep '^Filesystem' && df -h | grep '^/dev/nvme'
Desired results would be:
Filesystem Size Used Avail Use% Mounted on /dev/nvme0n1p2 ... /dev/nvme0n1p1 ...