Get argument from pipe
问题 Consider having the results from the pipe: find . Now I would like to access in the second command behind the pipe what is actually piped (inputed) and then for example to print it twice. find . | printf $arg$arg\n #each filename would be printed twice per line Please note that the question is not asking about printing whatever once gets from pipe twice, I know how to use bash for loop or write a script that could accomplish the mentioned. How I can get $arg to use it quickly in inline