reverse read in KORN shell
Is there a way to read a data file ( within a korn shell ) from bottom-to-top rather than from top-to-bottom?
I'm working with some database table that have referential integrity; the tables have to be loaded in a certain order, but unloaded in the reverse order. What I'd like to be able to do is set up one data file with the table names that could be read normally for loading and in reverse order for unloading. Having one file rather than two simplifies maintenance and reduces the chance for mis-matched files.
TIA
|