Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

How to read a number from a file?

$
0
0
hello guys,

I'm struggled to get a number from a very long text file.
Code:

NAtoms=  33 NActive=  30 NUniq=  23 SFac= 1.00D+00 NAtFMM=  60 NAOKFM=F Big=F
 Integral buffers will be    131072 words long.
 Raffenetti 2 integral format.

The number 33 is what I wanted, always follows NAtoms= . I use awk -F= '{print $2}', but get "33 NActive" instead of 33.

Thank you very much for your kind help.

Viewing all articles
Browse latest Browse all 16232

Trending Articles