Command / Pipe Show Live Preview
Pipe Show Live Preview
Preview content via streaming with a specified command.
$
Terminal <command> | tv --preview '<preview_command>' <command> | tv --preview '<preview_command>' #!/bin/bash
# Pipe Show Live Preview
{{command}} | tv --preview '{{preview_command}}' When To Use
When needing to visualize data without executing the full output.
Pro Tip
The preview can malform if output length exceeds 80 characters per line. Use `-w` for wrapping.
Command Breakdown
What each part is doing
-
<command> - Base Command
- The executable that performs this operation. Here it runs Command before the shell applies any redirect operators.
-
<command> - command
- The value supplied for command.
-
<preview_command> - preview command
- The value supplied for preview command.
-
--preview - Command Option
- Tool-specific option used by this command invocation.
Alternative Approaches
Comparable commands in other tools
Alternative documentation tools for the same job.