I received the following error using UV10. [EMAIL PROTECTED] CBS-BLUE]$ echo "&HOLD&" | /usr/uv/bin/file.stat File name = &HOLD& Cannot process type 1, 19, 25 or 30 file "&HOLD&".
Looks like VOC is a type 3 file (which did work). file.stat does not seem to work with 1,19,30 files. George -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rod Hills Sent: Thursday, September 08, 2005 9:55 AM To: [email protected] Subject: RE: [U2] How to count records present in TYPE 30 file from unix shell prompt ?? How about executing a FILE.STAT- Let's say your universe account is at /u1/uv and you want a record count of the VOC. Then enter cd /u1/uv nrec=`echo "VOC" | /u1/uv/bin/file.stat | awk '/^Number of rec/{print $5}'` Hope that helps... Rod Hills -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pankaj Gupta04 Sent: Wednesday, September 07, 2005 10:51 PM To: [email protected] Subject: [U2] How to count records present in TYPE 30 file from unix shell prompt ?? Hi, How to obtain the count of records present in TYPE 30 Universe file from Unix Shell prompt? One way to obtain the count of records for TYPE 30 file is give below. The command "/u1/uv/bin/uv "COUNT TYPE.30.FILE" | tail -n 1 | cut -f 1 -d " "" can be executed on the shell prompt for obtaining the count. Please provide an efficient solution for the above problem. ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
