1836666 Members
2384 Online
110106 Solutions
New Discussion

A script problem

 
ericfjchen
Regular Advisor

A script problem

Can someone pls explain the following script?
--------
typeset -i c1=`awk 'NR==4{print $1}' cklog.out`
--------

Thanks
1 REPLY 1
Chris Wilshaw
Honored Contributor

Re: A script problem

The typeset command is being used to set up an integer variable (-i) called c1

The value of c1 is being set to
the first field ($1)
of line 4 (NR==4)
of the file cklog.out