Linux command line tool that reveals the fields in Linux files or directories, along with a structured display.
before | after |
---|---|
![]() |
![]() |
Data fields in Linux are often non-present and requires internet search.
This is a simple solution to clearly display this basic information.
Adding entries to fields.txt
will grow the use of the tool.
Each entry contains comma seperated values.
- Path to file.
- awk field separator. Defaults to
,
if empty. - Optional, use
PFAT
to use regular expression for complex paterns in awk. Defaults to field separator (-FS), if empty. - Number of fields.
- Comma seperated list of the fields present.
Example:
- /var/log/apache2/error.log,
- ([^[:space:]]+|"[^"]+"|\[[^]]+\]),
- FPAT,
- 5,
- Timestamp, Error code, Process/Thread IDs, Message code, Message
All together the entry should look like this:
/var/log/apache2/error.log,([^[:space:]]+|"[^"]+"|\\[[^]]+\\]),FPAT,5, Timestamp, Error code, Process/Thread IDs, Message code, Message