Which output will appear if the command, ./script.sh test1 test2, is entered?

Posted by: Pdfprep Category: LFCS Tags: , ,

The script, script.sh, consists of the following lines:

#!/bin/bash

echo $2 $1

Which output will appear if the command, ./script.sh test1 test2, is entered?
A . test1 test2
B . test2 test1
C . script.sh test2
D . script.sh test1
E . test1 script.sh

Answer: B

Leave a Reply

Your email address will not be published.