答案1
diff <(cat <(lsblk -l |sed -n "s/.*\(nvme...\)p.*/\1/p") <(mount|sed -n "s/.*\(nvme...\).*/\1/p")|sort -u) <(lsblk -l |sed -n "s/.*\(nvme...\).*/\1/p" |sort -u)
第一:有一个分区并安装第二:全部来自 lsblk 和 diff
diff <(cat <(lsblk -l |sed -n "s/.*\(nvme...\)p.*/\1/p") <(mount|sed -n "s/.*\(nvme...\).*/\1/p")|sort -u) <(lsblk -l |sed -n "s/.*\(nvme...\).*/\1/p" |sort -u)
第一:有一个分区并安装第二:全部来自 lsblk 和 diff