Re: dd question

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

 





On 10 December 2010 03:11, Amadeus W.M. <amadeus84@xxxxxxxxxxx> wrote:
I have a binary file with data. Each block of 48 bytes is a record. I
want to extract the first 8 bytes within each record. I'm thinking this
should be possible with dd, but gawk, perl - anything goes. It just has
to be fast, because the data files are ~ 1Gb.

I can do this in C++ but I was just wondering if it can be done with
existing well tested tools.

Any suggestions? Thanks!


perl or python.

In perl you want "unpack" and in python you probaly want "struct.unpack".

jch
-- 
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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux