问题
I have multiple data files that are named after what they contain. For example
machine-testM_pid-1234_key1-value1.log
There are keys and values separated by - and _. Is there a better syntax for this? Are there parsers that automatically read these kinds of files/filenames?
The idea here is that the filenames are human and machine readable.
回答1:
There seems to be no standard file naming convention for key-values.
来源:https://stackoverflow.com/questions/10087079/is-there-a-standard-file-naming-convention-for-key-value-pairs-in-filename