snap | phone screen | echo command implement
Anonymous User
683

Related to bash command line:
Write a function that takes in a string such and returns an array of strings based on the elements in the bracket:

Input: "file{1,2,3,4,5}.txt"
output: ["file1.txt", "file2.txt", .......]

Input: "{Jan}month{march}month"
output: ["Janmonth", "marchmonth"]

Comments (3)