-
String Replace in C++
As I’m just a C++ poser, I don’t know a lot of things programming in this language especially if I have to deal with STL (Standard Template Library). As some of you know, when you’re not using third party libraries in C++, programming gets a little harder (note : my harder is harder than your…
-
Linux Search and Replace in File
Here’s the syntax sed ‘s/SEARCH_TEXT/REPLACE_TEXT/g’ FILENAME > OUTFILE SEARCH_TEXT is the text to search in filename REPLACE TEXT is the string to be put in place of SEARCH_TEXT FILENAME is the file to be searched OUTFILE is the file where the output Sample sed ‘s/ORDER/VANTIVE_ORDER/g’ kwatogtest.sql > kwatogsed.log I keep on forgetting that syntax although…
Recent Comments