I'm setting up a .dir_colors
file, but I have a bit of an issue I can't seem to figure out.
I have PBS job scripts that I want colored, which work fine:
.job 01;35
But the output of these scripts generate two files each: output and error, which take the form:
.job.o354282 .job.e354282
Where the PBS job number is 354282. I'd really like to highlight both types, but the only way I can think of doing this is with wildcards like:
.job.o* 01;37
.job.e* 01;36
Which doesn't seem to work. I obviously can't hard code in every file extension possibility as I can't predict what my job numbers will be. Is there a way to use wildcards in a .dir_colors
file, or some other way to solve this problem?
Thanks.
Your generated job files look like they follow a predefined format. Perhaps you can change their format to:
or whatever so that the extension remains the same as wildcards are not supported in LS_COLORS.