Skip to content

Commit

Permalink
ADD README
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Mar 22, 2023
1 parent 92c87e8 commit 0e76b19
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## fstail

Unfortunately, `tail -f /logs/*` may not do what you want it to do.

Bash will expand `*` to all existing files within `/logs/` and then show the extra lines added to each of them.

**What if you want to include newly created files too?**

`fstail` uses the fsnotify mechanism to detect both new and existing files, then starts printing their contents as and when they are written to.

### Usage

Tail the current directory:

```
cd /var/log/
fstail
```

Tail files in a given directory:

```
/var/log/nginx/
```

## License

Copyright Alex Ellis 2023

MIT license.

0 comments on commit 0e76b19

Please sign in to comment.