This article introduces up, a convenient tool that can be installed and used in Linux command-line Bash to interactively manipulate command pipe output.

akavel/up: Ultimate Plumber is a tool for writing Linux pipes with instant live preview
Installation
wget https://github.com/akavel/up/releases/download/v0.3.2/up
sudo chmod 755 ./up
You can download the file directly and execute it as is. If you want to execute it as a command, put it in your path, or
up(){
/mnt/c/pg/up
}
Do it like this, and you can execute it like gentext 20 20 random | up.
As you can see from the gif, up is a library that allows you to interactively filter data when you pipe standard output to it.
when you are satisfied with the result, you can press Ctrl-X to exit the Ultimate Plumber, and the command you built will be written into up1.sh file in the current working directory
To exit the interactive operation of up, send Ctrl-X. If it exits normally, the piped part of the command is saved in the current directory as a file like up1.sh.
yuis ASUS /mnt/c/pg$ cat up1.sh
#!/bin/bash
wc
So if you want to perform the same operation, you can do it with something | ./up1.sh.