Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 976 Bytes

README.md

File metadata and controls

50 lines (37 loc) · 976 Bytes

remChar

Removes every instance of characters or complete string in a string from a string.

USAGE

remChar - remove a string or list characters from a string
remChar chars_to_be_removed | [-s string_to_be_removed] string | [-f file] [-o file]
-f file: file containing text to be modified
-o file: output file
-s string: string to be completely removed

EXAMPLES

$ remChar l hello
  heo

OR

$ remChar hl "hello world"
  eo word

OR

$ remChar " " "hello world"
  helloworld

OR

$ cat input.txt
  hello world
$ remChar "h l" -f input.txt
  eoword

OR

$ cat input.txt
  hello world
$ remChar "h l" -f input.txt -o output.txt
$ cat output.txt
  eoword

OR

$ remChar -s "hello" "hello world"
   world

BUILD

$ mkdir build/
$ cd build/
$ cmake ..
$ make # to build project locally
$ sudo make install # to build and install the project