textselect.1 (1828B) download
1.TH textselect 1 "2024-08-07" "textselect 0.1" "User Commands"
2.SH NAME
3textselect \- Interactively select lines from a text file and optionally execute a command with the selected lines.
4.SH SYNOPSIS
5.B textselect
6.RB [ \-hnv0 ]
7.RB [ \-o \ output ]
8.I input
9.I [command [args...]]
10.SH DESCRIPTION
11.B textselect
12allows users to interactively select lines from a text file. The selected lines can be saved to an output file or passed to a command for execution.
13.SH OPTIONS
14.TP
15.B \-h
16Display this help message and exit.
17.TP
18.B \-n
19Keep empty lines which are not selectable.
20.TP
21.B \-o \fIoutput\fR
22Specify an output file to save the selected lines.
23.TP
24.B \-v
25Invert the selection of lines.
26.TP
27.B \-0
28Print selected lines delimited by a NUL-character
29.SH NAVIGATION AND SELECTION KEYS
30.TP
31.B UP, LEFT
32Move the cursor up.
33.TP
34.B DOWN, RIGHT
35Move the cursor down.
36.TP
37.B v
38Invert the selection of lines.
39.TP
40.B SPACE
41Select or deselect the current line.
42.TP
43.B ENTER, q
44Quit the selection interface.
45.SH EXAMPLES
46.TP
47.B textselect input.txt
48most simple example, select couple lines from a text-file and print it to the terminal afterwards
49.TP
50.B textselect -o output.txt
51select couple lines from a text-file and save it to a text-file
52.TP
53.B textselect input.txt lolcat
54select couple lines from a text-file and pass these to `lolcat` for some funny output
55.TP
56.B textselect <(xbps-query -l)
57select couple lines from a command and print it to the terminal afterwards (choosing from installed packages in Void Linux)
58.TP
59.B textselect <(xbps-query -m) xargs xbps-remove
60select couple lines from a command and execute command with lines as arguments (removing unnecessary packages in Void Linux)
61.SH SEE ALSO
62.BR xargs (1),
63.SH AUTHOR
64Written by Friedel Schon.
65.SH BUGS
66Issue bugs at https://github.com/friedelschoen/textselect.
67