mcstafford
Technical User
- Oct 28, 2010
- 2
Hello,
I would like to transform this:
/*!40101 SET character_set_client = utf8 */;
into this:
SET character_set_client = utf8;
I can highlight the parts I want to remove using grep, e.g.
How do you recommend I clear out the bits I don't want?
Thanks,
Mark
I would like to transform this:
/*!40101 SET character_set_client = utf8 */;
into this:
SET character_set_client = utf8;
I can highlight the parts I want to remove using grep, e.g.
Code:
grep --extended-regexp '^\/\*![0-9]{5}' file.txt
# or
grep --extended-regexp '\*\/$' file.txt
How do you recommend I clear out the bits I don't want?
Thanks,
Mark