Skip to content

hyuntaeng/findrep

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

findrep

A tool to easily find and replace from files

This is just grep and sed put together !!

###Usage

$ findrep [-h] <FIND-PATTERN> <REPLACE-WITH> [LOCATION]

###Examples

#replace all instances of 'foo' with 'bar' in the current directory

$ findrep foo bar
#replace all instances of 'foo' with 'bar' in the directory 'my-dir'

$ findrep foo bar my-dir/

###Building from source

$ make
  • move findrep to any location in your $PATH. eg: /usr/local/bin

###TODO

  • Enhance escape_spl_chars() to give correct input for sed (and grep).

###Contributions All contributions are most welcome.

About

A tool to easily find and replace from files

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 99.7%
  • Makefile 0.3%