![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to read record by record from a file in unix | raoscb | UNIX for Dummies Questions & Answers | 1 | 05-16-2008 06:30 AM |
| Fill the Key fields : Please help us | charandevu | Shell Programming and Scripting | 11 | 04-08-2008 09:40 AM |
| splitting a record and adding a record to a file | rsolap | Shell Programming and Scripting | 1 | 08-13-2007 01:58 PM |
| fill a NIL into the blank field | happyv | Shell Programming and Scripting | 8 | 03-23-2007 04:49 AM |
| Esc key/Auto-fill | mr_manny | SUN Solaris | 3 | 10-30-2005 07:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Calling all experts:
When I ftp from Mainframe to unix server, the ftp message says fixed length 2060, but i lose trailing spaces. I tried a solution i found here, awk ' { printf("%-2060s\n",$0) } ' fname1 > fname2 works for small records but, err msg: string too long, for long records Any ideas? Much appreciated. |
|
||||
|
Whenever you deal with mainframe files consider dd
I think you want something like - this assumes the input file has carriage returns (newlines): Code:
dd ifile=fname cbs=2060 conv=block > fname2 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|