Output / Read Data From Stdin
Read Data From Stdin
Use the output command to read data from stdin and query it with q.
$
Terminal <output> | q "select * from -" <output> | q "select * from -" #!/bin/bash
# Read Data From Stdin
{{output}} | q "select * from -" When To Use
This command is used to query data streamed from standard input.
Command Builder
Tune the command before you copy it
$
Generated Command <output> | q "select * from -" Terminal Output
Expected runtime feedback
>
Output id | name
---|-------
1 | Alice
2 | Bob
3 | Charlie Command Breakdown
What each part is doing
-
<output> - Base Command
- The executable that performs this operation. Here it runs Output before the shell applies any redirect operators.
-
<output> - output
- The value supplied for output.
How To Run
Execution path
- Step 1
Pipe data into the output command using 'output'.
- Step 2
Use 'q' to query the data with SQL-like syntax.
- Step 3
Specify the desired selection criteria in the query.
Alternative Approaches
Comparable commands in other tools
Alternative tools that share the "query-data" operation intent.
Ipython / Clear Ipython History Database
ipython history clear Minifab / Make Query On Ledger minifab blockquery <block_number> Tic / Print Database Locations Linux tic -D Alter / Delete Partition From Table alter table <table_name> drop partition (<partition_spec>); Mozillavpn / Select Specific Server mozillavpn select <server_name>