How can I create or update one file as a result of selecting some rows from other files??
I don’t know how to do this outside Sublime Text (maybe with some Python I could…), but I wonder anyway if it is possible to do something like this by using any kind of “functions” in Sublime Text:
I have several files with lots of data. I want to select those lines of those files containing one asterisk, for example.
EDIT: I mean, I would like to select every line that contains one asterisk, whatever the file it belongs.
Then, I want to copy and paste those lines into a new file, or just to append them to an existing file, maybe adding some prefix indicating the origin file.
Is it possible to automatize that action in Sublime Text?? How could I do that?
If not, could anyone give me some hint about the best way to address this task (for example, Python…)??
EDIT: OK, I am thinking of a “pushing-a-button” solution, but I realize that it would be also possible to do it “by hand”, just by using all the “tricks” (multiple selections and so on) available in Sublime Text. So, in that case: my question is: how would you perform such a task periodically (say, once per week)??
Looking forward to your answer,