Re: dd question (from man page)

2014-11-19 Thread jd1008
On 11/17/2014 03:03 PM, Cameron Simpson wrote: On 17Nov2014 13:22, Rick Stevens wrote: On 11/17/2014 11:28 AM, jd1008 issued this missive: Man page says: ... fdatasync physically write output file data before finishing fsync likewise, but also write metadata There

Re: dd question (from man page)

2014-11-18 Thread Robert Nichols
On 11/17/2014 01:28 PM, jd1008 wrote: Man page says: ... fdatasync physically write output file data before finishing fsync likewise, but also write metadata There is no explanation about this, as dd is supposed to be agnostic about the type of the data. If a

Re: dd question (from man page)

2014-11-17 Thread Cameron Simpson
On 17Nov2014 13:22, Rick Stevens wrote: On 11/17/2014 11:28 AM, jd1008 issued this missive: Man page says: ... fdatasync physically write output file data before finishing fsync likewise, but also write metadata There is no explanation about this, as dd is supposed

Re: dd question (from man page)

2014-11-17 Thread Rick Stevens
On 11/17/2014 11:28 AM, jd1008 issued this missive: > Man page says: > ... > >fdatasync > physically write output file data before finishing > >fsync likewise, but also write metadata > > > There is no explanation about this, as dd is supposed to be agnostic > abo

dd question (from man page)

2014-11-17 Thread jd1008
Man page says: ... fdatasync physically write output file data before finishing fsync likewise, but also write metadata There is no explanation about this, as dd is supposed to be agnostic about the type of the data. If a disk is being dd'ed out to a file and the

Re: dd question

2010-12-16 Thread stan
On Thu, 16 Dec 2010 10:39:21 +1100 Cameron Simpson wrote: > Always happy to cast aspertions at others :-) Pretty mild to merit the label. And you even included more good content. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fe

Re: dd question

2010-12-15 Thread Cameron Simpson
On 15Dec2010 09:12, stan wrote: | Thanks for taking the time to critique and modify Always happy to cast aspertions at others :-) | On Wed, 15 Dec 2010 12:06:48 +1100 | Cameron Simpson wrote: | | > On 10Dec2010 14:28, stan wrote: | > | | > | def extract (filename1 = None, filename2 = None):

Re: dd question

2010-12-15 Thread stan
Thanks for taking the time to critique and modify On Wed, 15 Dec 2010 12:06:48 +1100 Cameron Simpson wrote: > On 10Dec2010 14:28, stan wrote: > | > | def extract (filename1 = None, filename2 = None): > | if filename1 != None and filename2 != None: > > I'd not bother with this check - it is

Re: dd question

2010-12-14 Thread Cameron Simpson
On 10Dec2010 14:28, stan wrote: | On Fri, 10 Dec 2010 03:11:25 + (UTC) | "Amadeus W.M." 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

Re: dd question

2010-12-10 Thread Garry T. Williams
On Thursday, December 09, 2010 22:11:25 Amadeus W.M. wrote: > I have a binary file with data. Each block of 48 bytes is a record. See perlfunc(1) and the sysread() Perl builtin. The easiest way to do this would be to loop over calls to sysread() that specify 48 characters. Here's the whole thing

Re: dd question

2010-12-10 Thread stan
On Fri, 10 Dec 2010 03:11:25 + (UTC) "Amadeus W.M." 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,

Re: dd question

2010-12-10 Thread fred smith
On Fri, Dec 10, 2010 at 01:57:49PM -0500, William Stock wrote: > On Thu, 2010-12-09 at 22:41 -0500, fred smith wrote: > > On Fri, Dec 10, 2010 at 03:11:25AM +, 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 t

Re: dd question

2010-12-10 Thread William Stock
On Thu, 2010-12-09 at 22:41 -0500, fred smith wrote: > On Fri, Dec 10, 2010 at 03:11:25AM +, 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

Re: dd question

2010-12-10 Thread John Haxby
On 10 December 2010 03:11, Amadeus W.M. 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

Re: dd question

2010-12-09 Thread Amadeus W.M.
Unfortunately no new lines between records. -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Re: dd question

2010-12-09 Thread fred smith
On Fri, Dec 10, 2010 at 03:11:25AM +, Amadeus W.M. 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,

dd question

2010-12-09 Thread Amadeus W.M.
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