# Parsing output with long lines using less

Output from commands that generate very long lines (e.g. tables produced by `docker` or `kubectl`) can be hard to parse when lines are wrapped. We can pipe their output to `less` using the `-S` or `--chop-long-lines` flag to have the lines be truncated instead of wrapped. The arrow keys can be used to view parts of lines that don't fit on the screen.

```bash
kubectl get pods -o wide | less -S
```

Source: `man less`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.eliasnorrby.com/bash/less-without-wrap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
