I am trying to create a template document in LaTeX, which contains text placeholders that I would define during compilation. For example:
\documentclass{article}
\begin{document}
\section{Introduction}
This is a placeholder document which contains [p1], [p2] and [p3].
\end{document}
So that I can later compile latex mydoc.tex p1=First p2=Second p3=Third
and get an output of This is a placeholder document which contains First, Second and Third.
I am wondering how can I achieve this (or some similar behavior)?

