From what I discovered in my last question, I am now attempting to parse the output from lstype -l
in order to determine the supertype and type manager for a given element type.
My initial thought is to process the output line-by-line and look for the first line starting with supertype:
, then take the remaining portion of the line.
However, this will only work if cleartool
always outputs in English. The code I'm writing could be used in a Japanese ClearCase environment, and I am concerned that a Japanese version of ClearCase may output something different from cleartool
. Is this a valid concern, or will cleartool
always output in English?
Example output:
cleartool> lstype -l eltype:utf8_file@\vobFoo
element type "utf8_file"
2012-12-03T19:08:24-06:00 by [username].None@CLEARCASE-VM
"Predefined element type used to represent a UTF8 file."
owner: [computer]\[username]
group: [computer]\None
scope: this VOB (ordinary type)
type manager: utf8_file_delta
supertype: file
meta-type of element: file element