The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris Unix Is Coming to IBM Mainframes - IT Jungle iBot UNIX and Linux RSS News 0 08-22-2007 11:20 AM
IBM to sell Sun Solaris on x86 and mainframes; pigs fly - SearchDataCenter.com iBot UNIX and Linux RSS News 0 08-20-2007 01:50 PM
IBM to consolidate its Unix and x86 servers onto mainframes - SearchDataCenter.com iBot UNIX and Linux RSS News 0 08-01-2007 09:40 PM
How to invoke cobol jobs on mainframes ahmedwaseem2000 Shell Programming and Scripting 3 07-24-2007 05:10 AM
FTP file to Mainframes bhgopi UNIX for Dummies Questions & Answers 1 08-28-2005 10:44 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-02-2007
videsh77 videsh77 is offline
Registered User
  
 

Join Date: Aug 2004
Posts: 144
File FTP to Unix from Mainframes.

Hi I have got one file FTPd from mainframe in an ASCII format in Unix environment.

If I have to deduce record width within this file, each approach we are finding different record width.

head -1 filename | wc -m
awk '{print length($0)}' filename ... lists record width for all records.
sed -n '1np' filename | wc -m

Each of these 3 approaches I get different count. It is very much clear file which got transferred from Mainframes is not correctly got FTPd.

Has anyone faced this problem before, & can help me?

Thanks in advance.
 

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 07:50 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