![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem count with wc-l command | kunimi | UNIX for Dummies Questions & Answers | 2 | 02-27-2008 03:42 AM |
| How count number of fields in a record | sureshg_sampat | Shell Programming and Scripting | 5 | 01-07-2008 06:30 AM |
| record count | dr46014 | Shell Programming and Scripting | 4 | 12-11-2007 04:39 PM |
| Need help with Isql record count | johnu122 | Shell Programming and Scripting | 4 | 11-18-2006 12:31 PM |
| How to count the record count in an EBCDIC file. | oracle8 | UNIX for Dummies Questions & Answers | 1 | 07-26-2006 07:22 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
I have a script which removes 2 header records and 1 trailer record in a list of files. The commands doing the actions are sed '1,2d' $file > tempfile1.dat sed '$d' < tempfile1.dat > $output.txt Its working fine for all records except a file having size=1445509814 and number of records=13152342. The output has only 5297671 records instead of being just 3 less than the original count. Is there any limitation on the number of records that the sed command can process? Some details- >uname -a SunOS xx 5.10 SunOS_Development sun4u sparc SUNW,Sun-Fire >df -k . Filesystem kbytes used avail capacity Mounted on xx 67091946 64377506 2043521 97% xx >df -k /tmp Filesystem kbytes used avail capacity Mounted on swap 17337536 1504840 15832696 9% xx |
|
||||
|
Its working in a similar way, just the number of records now generated is a bit more. I think its the problem of lack of space. As the box gets almost filled up when the code runs. When more space is available the output record count is also more.
Thanks a lot anyway! |
| Sponsored Links | ||
|
|