Re: dd question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2010-12-09 at 22:41 -0500, fred smith wrote:
> On Fri, Dec 10, 2010 at 03:11:25AM +0000, Amadeus W.M. wrote:
> > I have a binary file with data. Each block of 48 bytes is a record. I 

> >cut

> however this is a text file with newlines,... if it has no newlines
> your mileage may vary. in that case you could try some sed or awk
> hacks to insert newlines after each 48 bytes then feed it to cut.

Of course if the *binary* file has a 0x0a in it somewhere you'd be in
deep doodoo. You can't ASS-U-ME anything.  Been there, been bit.

> 
> good luck!
> 
> -- 
> ---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx -----------------------------
>                        I can do all things through Christ 
>                               who strengthens me.
> ------------------------------ Philippians 4:13 -------------------------------


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux