On: Sun, May 15, 2011 at 08:46:57AM -0500,Alain Benveniste Wrote:

} I try to sort the MDISK by the rdev in a direct file :
} 
} /**/
} "PIPE (ENDCHAR ?)",
}     "< MAINT DIRECT A0",
}     "!01: PICK W1 == /MDISK/",
}     "! SORT 7.4",
}     "!02: FANINANY",
}     "!> A A A1",
}     "?",
}     "01:",
}     "!02:"
} 
} The work is done but can't find the way to preserve a valid coherence for
} dirmaint after all. I tried buffer, copy, elastic... 
} 
} the result looks like this :
} 
} USER...
} .
} .
} .
} *DVHOPT
} MDISK...

Alain,
This is working as designed.  The sort doesn't output any records until
< reaches EOF and propogates the EOF down the pipe.  By then, all the
non-MDISK records have reached the >.

The way I would do it would be to write NNN0000 in cols 73-79 as the
records are input (where NNN is the record number), then for MDISK
records pick up the first NNN and for each MDISK overlay MMMrdev
in 73-79 (where MMM = first MDISK's NNN), then do a hex sort on 73-79
after the FANINANY.

-- 
Rich Greenberg  Sarasota, FL, USA richgr atsign panix.com  + 1 941 378 2097
Eastern time.  N6LRT  I speak for myself & my dogs only.    VM'er since CP-67
Canines: Val, Red, Shasta, Zero & Casey (At the bridge)        Owner:Chinook-L
Canines: Red & Cinnar (Siberians)  Retired at the beach  Asst Owner:Sibernet-L

Reply via email to