GithubHelp home page GithubHelp logo

chrunlee / findstr Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 7 KB

查找目标文件夹内符合后缀的文件内的关键字,并进行替换。目前只能替换单行文字,后续增加多行文本或文件。

License: MIT License

JavaScript 100.00%

findstr's Introduction

findstring - 命令行工具

查找目标文件夹内符合后缀的文件内的关键字,并进行替换。目前只能替换单行文字,后续增加多行文本或文件。

install

npm install findstr -g

usage

//指定目标文件夹
findstring -d /home/resource/     

//需要查找或要替换的字符串
findstring -k keyword             

//需要替换的字符串
findstring -t replaceword        

//是否递归查询
findstring -r 

//文件的后缀名称
findstring -e .txt,.css

//使用,替换 D:/test/ 目录下所有(递归)html 文件中的 span ,为 div
findstring -d d:/test/ -k span -t div -r

//help 
findstring -h

description

.. 写完最后使用才发现.findstr 为 windows 自带命令.. 无奈改名 findstring,勉强自己使用吧。

findstr's People

Contributors

chrunlee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.