How to grep sections of a line out and copy to new file
I have to grep out only parts of the lines and put into a new file
Lines look like this ie exampleA,exampleB,exampleC,exampleD
Now I only want exampleA,exampleB in my new file. How can I only select the first 2?
I hope this was clear enough. Thanks!