In Bash, the Linux command line language, weโll process standard input (stdin, pipe) as variables using the Bash xargs command.
ASUS:/mnt/c/pg/$ seq 1 3 | xargs -I {} bash -c "echo {} && echo {}"
1
1
2
2
3
3
# or..
$ seq 1 3 | xargs -I {} echo {} {}
How to repeat variables twice in xargs - Unix & Linux Stack Exchange