How to use stdin to give data to rankmirrors command
1
vote
1
answer
173
views
Probably a rooky question, but I have seen that the "rankmirrors" command can use the **stdin** input. But when I run the following command (which retrieve all URL in use in the "mirrorslist" file to the "rankmirrors"), I get an error:
Bash
$ rg -e "^Server" /etc/pacman.d/mirrorlist | rg -oe "https.*" | rankmirrors -t
Must specify URL, mirrorfile, or stdin.
There is another way to use the previous command **stdout** as current **stdin** of the command ?
Asked by Apitronix
(113 rep)
Mar 19, 2022, 08:29 AM
Last activity: Mar 19, 2022, 10:28 AM
Last activity: Mar 19, 2022, 10:28 AM