System Database Directory
Number of entries in the directory = 3
Database 1 entry:
Database alias = Sample
Database name = sample
Local database directory = /home/db2inst1
Database release level = b.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
Database 2 entry:
Database alias = sample2
Database name = sample2
Local database directory = /home/db2inst1
Database release level = b.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
Database 3 entry:
Database alias = sample3
Database name = sample
Local database directory = /home/db2inst1
Database release level = b.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
システム コマンドを実行すると、次のテキストが表示されます。私はsample,sample2,sample3
出力としてのみ欲しい。私はこれをシェルで行うことに慣れていますが、perl は初めてです。