Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 07:53 AM
тАО08-01-2002 07:53 AM
dd
Using dd if=xxx of=xxx cbs=512 conv=unblock.
Each record comes out nicely on its own row but surpass the length of 275.
How do I chop off the rest of the record from 276 to the end of that record?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 08:00 AM
тАО08-01-2002 08:00 AM
Re: dd
dd if=xxx of=xxx obs=6900 cbs=275 conv=block
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 08:11 AM
тАО08-01-2002 08:11 AM
Re: dd
In your case, I would do this:
dd if=xxx ibs=275 obs=6875 of=/dev/rmt/yyy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 08:15 AM
тАО08-01-2002 08:15 AM
Re: dd
thanks,
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 08:21 AM
тАО08-01-2002 08:21 AM
Re: dd
$ cat >that
This
and
that
and
the
other
thing
^D
$ dd if=that of=this obs=128 cbs=6 conv=block
0+1 records in
0+1 records out
pegasus homeroot # od -c this
0000000 T h i s a n d t h a t
0000020 a n d t h e o t
0000040 h e r t h i n g
Notice each record is fixed length at 6 bytes.
Is your input data a unix text file or some cobol generated output file?
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 08:24 AM
тАО08-01-2002 08:24 AM
Re: dd
0000000 5468 6973 2020 616e 6420 2020 7468 6174
T h i s a n d t h a t
0000010 2020 616e 6420 2020 7468 6520 2020 6f74
a n d t h e o t
0000020 6865 7220 7468 696e 6720
h e r t h i n g
000002a
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 08:30 AM
тАО08-01-2002 08:30 AM
Re: dd
Thanks,
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 08:49 AM
тАО08-01-2002 08:49 AM
Re: dd
If this tape is for the IRS, and needs to be fixed length records, then do you know if the data needs to be EBCDIC?
The text file generated by oracle, is it a true variable length ascii file seperated with ascii \012?
Does this need to be fixed length records, or just records with a max size of 275?
dd can handle conversion between different formats, so it's just a matter of determining the correct blocking factor, record type, and character code.
-- Rod Hills