The pipe | is used to pass output from first command as an input to the another command, so:
test.sh | date "+TEMPLATE_%Y%m%d"
means that shell will execute the test.sh command and then will pass the stdout of test.sh as an stdin for date command. If you want to pass arguments, don't use pipe and do it as mi294r3 wrote.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.