1843630 Members
4390 Online
110223 Solutions
New Discussion

unable to cut value

 
SOLVED
Go to solution
panchpan
Regular Advisor

unable to cut value

I would like to view only available figure from below output.

FS and DB Name: /a4079/amfp920p
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg543-lvol1
8388348 32840 8355508 1% /a4219
FS and DB Name: /a4219/amfp23cp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg553-lvol1
8388348 4808728 3579620 58% /a4229
FS and DB Name: /a4229/amfp232p
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg604-lvol1
33553404 32840 33520564 1% /a4239
FS and DB Name: /a4239/amfp013p

Please advice the trick!!!
3 REPLIES 3
spex
Honored Contributor
Solution

Re: unable to cut value

$ awk '/^\/dev/{print $4}' < infile
Sandman!
Honored Contributor

Re: unable to cut value

# awk '/^\/dev/{getline;print $3}' infile
panchpan
Regular Advisor

Re: unable to cut value

THANK YOU