我需要下面的文字与数字,在该行的末尾使用bash重复的值的文本: test1, red, 1
test2, green, 2
test3, white, 3
这需要给出以下结果 test1, red
test2, green
test2, green
test3, white
test3, white
test3, white
请解释如果需要的步骤。
我创建了一个(makefile文件)包含文件,其中包含一些变量,这些变量被其他makefile使用。 # this is myinclude/makevars file
MY_FOLDER:=$(ROOT_FOLDER)/my/folder
ANOTHER_FOLDER:=$(MY_FOLDER)/another/folder
MY_LIB:=$(ANOTHER_FOLDER)/lib