I tried to use a copied script, which includes the following commandecho rc  $2 > $WORKDIR/out.datI can guess it tries to output some contents to file out.dat. But what does rc $2 mean?It also includesecho PWD >> $WORKDIR/env.txtWhy does it use >> here instead of >?
What does the syntax of these echo commands mean?
linux;shell script;tcsh
Neither of these are actually echo questions.rc $2 is the text rc, a space, and the second argument passed to the script or function.>> appends to an existing file, as opposed to > which writes to a new file, erasing any existing file in the process.