sed -i 's/public\.//g' mylargetextfile.txtNotice the forward slash in front of the puncuation mark. It tells sed to interpret it literally, not as a special character used in regular expressions. Source: Stackoverflow
Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies. When relevant, I also write about other technologies, like Linux or PostgreSQL. Many of the posts starts with "how to" since they derive directly from my own personal experience. My goal is to provide simple examples, so that they can be easily adapted to other situations.
Wednesday, December 8, 2021
How to replace a specific string in a very large text file
Here is how I removed the string "public." from a 4G file:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment