Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 503 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 503 Bytes

Sed's java implementation

A non-production project to implement Linux's SED in Java. It supports following options of SED command

  • Basic regex substitution using s///g
  • Support for -n
    • -n '2,4p' - Prints the specified line number
    • -n /pattern/p filename - Prints the line which satisy the pattern
  • G - Add double-spacing to a file
  • /^$/d - Strip trailing blank lines from file
  • -i s/Search/ReplaceWith/g - Edit in-place