Qualifiers

John Esak john at valar.com
Thu Dec 3 20:45:28 PST 2009


Of course bs=1024 count=1 is so much better. But, then, I'm forgetting...
Didn't you once tell me that 2048 would actually be better for some reason?
I know the header all fits in 1024... But I've been using 2048 in all my
stuff for a couple years now and I think it was something that happened or
something you told me that caused me to change it.  Anyway, yes, why count
through 1024 or 2048 bytes one at a time... When dd is so flexible.
Actually, oeverall, through all the powerful things Unix has provided since
time began... I think I like dd the best of all the utilities.... It is just
so easy to understand and so useful for so many different things. So now...
Let's see, my favorite things... Music, sex, filePro, dd ... Not
particularly in that order based on the day and other circumstances?  :-)

John
 

> -----Original Message-----
> From: Kenneth Brody [mailto:kenbrody at spamcop.net] 
> Sent: Thursday, December 03, 2009 11:01 PM
> To: john at valar.com
> Cc: 'FilePro Mailing List'
> Subject: Re: Qualifiers
> 
> John Esak wrote:
> > Yes, that is the idea of course... Very nifty... And to 
> help further, the
> > "getting the header only" part could be done with dd 
> if=ix_file of=ixq_file
> > count=1024 bs=1
> > 
> > Meaning 1024 covers the index header fine and gives you a 
> nice clean new
> > index.
> 
> For efficiency's sake, I would use "bs=1024 count=1" instead. 
>  Not much 
> difference for a single file, but it adds up if scripting 
> hundreds of indexes.
> 
> > Ken's done all the other work.  Wow.  Now, I want to see it 
> in batch!  :-)
> > Which is why I always wrote it in filePro.
> 
> Current cmd.exe batch processing is actually pretty decent.  
> In particular 
> for this case is the capability of multi-line for and if statements.
> 
> It might actually be doable in a Windows .bat file.
> 
> [...]
> >> Pseudo-code (untested):
> >>
> >> for file in list_of_files
> >> do
> >>    cd $PFDATA$PFDIR/filepro/$file
> >>    for qual in list_of_qualifiers
> >>    do
> >>      create empty key$qual
> >>      create empty data$qual
> >>      for ix in A through Z
> >>      do
> >>        if index.$ix exists, copy (header of) index.$ix to 
> >> index$qual.$ix
> >>      done
> >>      append "$qual" to qualifiers file
> >>      chown/chmod key$qual data$qual index$qual.*
> >>      rebuild all indexes in qualifier
> >>    done
> >> done
> 
> -- 
> Kenneth Brody
> 



More information about the Filepro-list mailing list