mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
23 lines
No EOL
567 B
YAML
23 lines
No EOL
567 B
YAML
name: file_lines
|
|
notes: This table is from the [Mac Admins osquery extension](https://github.com/macadmins/osquery-extension).
|
|
description: Allows reading an arbitrary file.
|
|
platforms:
|
|
- darwin
|
|
- windows
|
|
- linux
|
|
evented: false
|
|
examples: |-
|
|
Output the content of `/etc/hosts` line by line.
|
|
|
|
```
|
|
SELECT * FROM file_lines WHERE path='/etc/hosts';
|
|
```
|
|
columns:
|
|
- name: path
|
|
description: Path of the file to read.
|
|
required: true
|
|
type: text
|
|
- name: line
|
|
description: Output of the file, line by line.
|
|
required: false
|
|
type: text |