Lately I ran into a command:
curl https://start.spring.io/starter.tgz -d dependencies=webflux,actuator | tar -xzvf -
curl
itself does not download the tgz
file, since it is not wget
. tar -xzvf
does not download any file either. But tar -xzvf -
does "download" files. I didn't find any -
explanation in tar
manpage, and I don't think it relates to login shell. I guess it is the shell I used. What is this -
?
cat | grep
would read stdin without being explicitly told so (like using parameter-
), and at the same time these commands could be given a file to work on. While tar is special... – Tiina Dec 22 '19 at 10:25tar
is not special. You should read thecat
manual. You are in for a surprise. A further surprise awaits at https://unix.stackexchange.com/a/41842/5132 . – JdeBP Dec 22 '19 at 11:32