At my formal company, there was a flat database library that was very convenient to use (under Unix Solaris)
Here is an example:
The below file (say printerslice) was used to store data of our printers.
We used it to ftp files to printers.
You could query the db as
Code:
printerslice country=at port=pr1 ip
That would have returned the list of ip addresses from Austria using port pr1
I would be one of the happiest man if you know something similar
Code:
#!/u/ss/bin/fdbsh
#@ country # ISO 3166-1 country code
#@ printer !uniqkey # printer name <ctry>_<number>
#@ fqdn !uniqkey # Fully Qualified Domain Name
#@ ip # IP address matching the fqdn.
#@ ff # Form Feed necessary?
#@ port !default=n/a # Logical port the printer prints on
#@ login !default=pr2 # Login name used to print to the printer
#@ passwd !default=n/a # Password corresponding to the login name.
#####################################################################
country at
printer at_1
fqdn at_1_printer.lanier-europe.com.
ip 192.168.215.20
port pr1
ff n
login anyone
passwd none
#####################################################
country at
printer at_3
fqdn at_3_printer.lanier-europe.com.
ip 172.22.66.31
port pr5
ff y
login anyone
passwd none
#####################################################
country at
printer at_4
fqdn at_4_printer.lanier-europe.com.
ip 172.22.66.32
port pr1
ff n
login anyone
passwd none
Last edited by radoulov; 03-23-2012 at 07:50 PM..
Reason: Code tags.
I have a B+ tree flat file database which is used by the application we use.
I would like to implement a SQL kind of access for that DB.
I have implemented my data structures to parse and store the user written query for execution.
But i would like to know, do we have any standard data... (2 Replies)
Hello There..
I came to a situation where I need to write flat files using shell scripts, I need to pull the records from the oracle database and create the flat file, This process should be automated.
Can any shell script expert out here to help me.. please..
Will be really glad to... (3 Replies)