![]() |
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 |
| What the command to find out the record length of a fixed length file? | tranq01 | UNIX for Dummies Questions & Answers | 9 | 12-04-2008 04:04 PM |
| zero byte file | dsdev_123 | AIX | 2 | 03-20-2008 10:50 AM |
| 0 byte file with no name???? | miltonkeynesguy | Shell Programming and Scripting | 5 | 08-17-2007 09:01 AM |
| Reformat Crontab file | alnita | Shell Programming and Scripting | 1 | 04-11-2007 03:28 AM |
| reformat the file | CamTu | Shell Programming and Scripting | 3 | 03-09-2005 05:01 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how to reformat a file to 80 byte rec length?
I have a variable length file that needs to be reformatted to 80 byte reclen before I ftp it to a customer. What is the best way to do this? I tried using dd if=inputfile of=outputfile conv=noblock cbs=80, and it almost gives me what I need. The output file needs to be 80-byte records, and the last record needs to be padded to 80 bytes. I can't get the last record padding with dd. BTW, I'm on AIX 5.2.
Can I use an AWK for this? |
|
||||
|
How to truncate/fold data so that it can be formatted to 80-byte file?
I have a unix file that needs to be formatted to an 80-byte file. We have an HP-UX system, so I think the last Awk example will work. Since my file is greater than 80-bytes in length, can someone explain how to "fold" the file?
Thank you! Melissa |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|