The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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
how to get a file name & record count of csv file sirik UNIX for Dummies Questions & Answers 2 03-06-2008 02:55 PM
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
count lines of file panknil Shell Programming and Scripting 15 06-07-2007 04:40 AM
Need help with Isql record count johnu122 Shell Programming and Scripting 4 11-18-2006 12:31 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-26-2006
oracle8 oracle8 is offline
Registered User
  
 

Join Date: Sep 2001
Posts: 13
How to count the record count in an EBCDIC file.

How do I get the record count in an EBCDIC file on a Linux Box.
  #2 (permalink)  
Old 07-26-2006
tmarikle tmarikle is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2005
Posts: 683
One method using dd given that you know the record size of course:
Code:
$ dd if=ebcdic_file bs=$REC_SIZE > /dev/null

nnn+0 records in
nnn+0 records out
or
Code:
$ dd if=ebcdic_file cbs=$REC_SIZE conv=ascii | wc -l

     nnn

Last edited by tmarikle; 07-26-2006 at 07:27 PM..
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0