Difference between revisions of "Sed"

From PKC
Jump to navigation Jump to search
Line 1: Line 1:
[https://man7.org/linux/man-pages/man1/sed.1.html sed] is a unix command for stream data editor.
[https://man7.org/linux/man-pages/man1/sed.1.html sed] is a unix command for stream data editor.


=Handling Special Characters=
=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" OriginalTextualContent.txt > NoSeparator.txt  
  sed "/'/d" OriginalTextualContent.txt > NoSeparator.txt  


[[Category:Unix Command]]
[[Category:Unix Command]]

Revision as of 10:20, 13 January 2022

sed is a unix command for stream data editor.

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