Skip to content

List file lines matched a specific regural expression (or simple string) in a folder.

License

Notifications You must be signed in to change notification settings

tamas646/mytextinfolder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mytextinfolder

List file lines matched a specific regural expression (or simple string) in a folder.

It's just a simple script to search for specific parts of a source code.

Usage

mytextinfolder <folder> <regex or simple string>

Example

mytextinfolder /var/www/html/ '\(mysqli_connect\|new mysqli\)'

And you will see all mysqli connections. ;)

Installation

  • You can either download and install the deb package or use the source code and setup it yourself.

  • If you wish, you can install it from my apt repository too:

    sudo echo "deb [signed-by=/usr/share/keyrings/ptamas-pub.gpg] http://apt.ptamas.hu/main/ ./" > /etc/apt/sources.list.d/apt.ptamas.list
    wget -qO - https://apt.ptamas.hu/ptamas-pub.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/ptamas-pub.gpg > /dev/null
    apt update && apt install mytextinfolder

About

List file lines matched a specific regural expression (or simple string) in a folder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages