![]() |
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 |
| Parsing records from one record | bwrynz1 | UNIX for Advanced & Expert Users | 1 | 03-10-2008 10:54 AM |
| deleting multiple records from a huge file at one time | dsravan | Shell Programming and Scripting | 5 | 02-06-2008 11:17 AM |
| Count No of Records in File without counting Header and Trailer Records | guiguy | Shell Programming and Scripting | 2 | 06-07-2007 12:15 PM |
| How to extract duplicate records with associated header record | run_eim | UNIX for Dummies Questions & Answers | 17 | 01-16-2007 11:46 PM |
| Parsing a variable length record | Barb | UNIX for Dummies Questions & Answers | 17 | 10-01-2004 08:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Show how the input (one huge record) and what the output (individual records from the single huge record) looks like.
|
|
||||
|
The one huge record file is 9 MB long... I'm sorry I can't post it here.
But assume there is a record as follows - 1234567890abcdefghij1234567890abcdefghij1234567890 and I wanted to put a line break after each 10 characters and get the following - 1234567890 abcdefghij 1234567890 abcdefghij 1234567890 Thanks for offering to help |
|
||||
|
The one huge record file is 9 MB long... I'm sorry I can't post it here.
But assume there is a record as follows - 1234567890abcdefghij1234567890abcdefghij1234567890 and I wanted to put a line break after each 10 characters and get the following - 1234567890 abcdefghij 1234567890 abcdefghij 1234567890 Thanks for offering to help |
|
||||
|
No UNIX tool can read a 9MB record. If you look at the man page for dd, you can specify a cbs=10:
Code:
dd cbs=10 conv=unblock < oldfile > newfile |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|