Skip to content

Removes a every instance of given character from given string

License

Notifications You must be signed in to change notification settings

lorax42/remChar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Removes a every instance of given character from given string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published