Exist many files with this structure within diferent directories, the files are named equals idea.js:
get.idea("tagIdea1","Some idea1 tag abc"); get.idea("idea1","Some idea1 description1 abc"); get.idea("tagIdea2","Some idea2 tag abc"); get.idea("idea2","Some idea2 description2 abc"); ... ...
...So like this... Many ideas with its correspondent idea description.
It is necessary to get the second parameter from each get.idea function and create its correspondent .csv file in the same directory that was found de idea.js file with that seconds parameters for each file found like this:
Idea, descripcion "Some idea1 tag abc","Some idea1 description1 abc" "Some idea2 tag abc","Some idea2 description2 abc"
I think with grep command and a regular expression storing the words in an array and within a cycle increasing the number for each idea can be done but I don't know how create the regular expression that match the second parameter for each idea and how storage in an array to later be exported to a new .csv file with the mentioned estructure in the same directory that was found the idea.js files. Can you help me.