Skip to content

Play with text and applaud us by saying "SABAS".

Notifications You must be signed in to change notification settings

chaurasiyag/SABAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

SABAS

Play with text and applaud us by saying "SABAS". Its search method is based on KMP (Knuth-Morris-Pratt) Algorithm. Its operations are Search ,Delete(All), Replace(All), Delete and Replace Multiple word of same occurence of pattern according to index

Time Complexity:

O(m+n) n-length of pattern m-length of text

open console and type

sabas -h or --help
 command -option [filename] [pattern] [new_string]
	new_string is only for replacement leave it blank if not needed.

Option 		 Description

-->	default		Search all the occurence of pattern in text file

`-->	-r		replaces all the occurence of pattern in text file with new_string

 or --replace

new_string is for only replacement for any other operation leave it blank 

-->	-rm		replaces multiple occurence of pattern with specified index in text file with new_string

 or --replace-multiple

-->	-d		delete all the occurence of pattern in text file
 or --delete

-->	-dm		delete multiple occurence of pattern with specified index in text file 
 or --delete-multiple

About

Play with text and applaud us by saying "SABAS".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages