Find and replace all occurrences of 's1' by 's2' in inputFile, results are written to outputFile
sed 's/s1/s2>/g' inputFile > outputFile
Remove HTML, XML tag from file:
sed -i '/<CODE>/,/<\/CODE>/d' /home/duy/workspace/cxtractor/nlpdata/ontologies/snomed/collection/snomed.dict.trec
Log in to post a comment.
Find and replace all occurrences of 's1' by 's2' in inputFile, results are written to outputFile
sed 's/s1/s2>/g' inputFile > outputFile
Remove HTML, XML tag from file:
sed -i '//,/<\/b>/d' foo.xml
sed -i '/<CODE>/,/<\/CODE>/d' /home/duy/workspace/cxtractor/nlpdata/ontologies/snomed/collection/snomed.dict.trec