I have listed a few methods to define multiline shell variables.. On Linux, BSD, and Mac OS (Unix-like) systems, the sh step is used to execute a shell command in a Pipeline. echo "Multiline shell steps works too". Jul 27, 2014 · The shell script automatically determines the data type used for the variable value. Top Forums Shell Programming and Scripting Assign the result of a multiline command to a variable ... Hello All, Hope you're doing well ! I am trying below command to be passed in a shell script, header_date_14 is a variable and $1 is the name of a file I intend to pass as a command line argument, however command line argument is not being.