Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alveflo/lantern
Command line tool for pattern search in files
https://github.com/alveflo/lantern
Last synced: 14 days ago
JSON representation
Command line tool for pattern search in files
- Host: GitHub
- URL: https://github.com/alveflo/lantern
- Owner: alveflo
- License: mit
- Created: 2021-06-12T15:41:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-25T19:40:38.000Z (over 3 years ago)
- Last Synced: 2024-06-20T13:41:02.745Z (7 months ago)
- Language: Go
- Homepage:
- Size: 1.08 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lantern
Command line tool for pattern search in files## Installation
Install with [Gobinaries](https://gobinaries.com/):
```
$ curl -sf https://gobinaries.com/alveflo/lantern | sh
```## Usage
```
$ lantern [searchpattern]
```
Note that regular expressions is supported.## Example
Example showing searching for `package \w+$` in this
repository
```
$ lantern "package \w+$"
/lantern/main.go (1:0):
package main
/lantern/pkg/crawler/crawler.go (1:0):
package crawler
/lantern/pkg/crawler/filereader.go (1:0):
package crawler
/lantern/pkg/crawler/filereader_test.go (1:0):
package crawler
```