- 论坛徽章:
- 2
|
回复 1# dxwwp - awk --re-interval -vRS="--- Logical volume ---" -F'\t|\n' 'BEGIN{print "LV Name \t VG Name \t LV UUID \t LV Write Access \t LV Status \t LV Size \t Current LE"}
- NR>1{gsub(/ {2,}/,"\t");print gensub(/(.*)\/(.*)/,"\\2",1,$4),$7,$10,$13,$16,$19,$22}' OFS="\t" file
- LV Name VG Name LV UUID LV Write Access LV Status LV Size Current LE
- lv_18 ora_dg 88PCdv-kRke-iToO-v9Oo-Vdah-nPSR-0sz71h read/write NOT available 21.00 GB 336
- lv_19 ora_dg LpCj31-TinZ-Rbru-Pria-Pc2A-Q89T-OF12g6 read/write NOT available 21.00 GB 336
- lv_20 ora_dg oO9fe3-a11s-xHpz-0HIB-QqGq-kiEN-iyDTDb read/write NOT available 21.00 GB 336
复制代码 |
|