Make p4 for multiple files containing matching pattern
I have few files inside the folder. But some of the files contain a specific pattern within them. I want to grep these files and edit p4 in those files.
I have used this command on my terminal, but it doesn't work.
grep -rl "pattern" * | p4 edit
Note. I ended up in the folder that contains all the files.
thank
+3
source to share