Difference between revisions of "Sed"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
=Handling Special Characters= | =Handling Special Characters= | ||
When dealing with special characters, use a different set of separators. For example: when dealing with <code>'</code>, use the following command: | When dealing with special characters, use a different set of separators. For example: when dealing with <code>'</code>, use the following command: | ||
sed "/'/d" | sed "/'/d" OriginalTextualContent.txt > NoSeparator.txt | ||
[[Category:Unix Command]] | [[Category:Unix Command]] |
Revision as of 10:19, 13 January 2022
sed is a unix command for stream data editor.
Handling Special Characters
When dealing with special characters, use a different set of separators. For example: when dealing with '
, use the following command:
sed "/'/d" OriginalTextualContent.txt > NoSeparator.txt