Operating System - Linux
1753500 Members
4745 Online
108794 Solutions
New Discussion

Re: Extract fields from text file.

 
SOLVED
Go to solution
Rajesh SB
Esteemed Contributor

Re: Extract fields from text file.

Hi,

I am able to extract the last 2 coloumn using below awk command.

# bdf -l | awk 'NF>2 {print $(NF-1),$NF}'

Cheers,
Rajesh SB