Medium
#/bin/bash
function myFunction
{
echo $1
shift 1
echo $2
}
myFunction $1 $2 $3
What is the result returned when passing '1' '2' '3' as a parameter?
Author: titouan lecampStatus: PublishedQuestion passed 73 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
1
Which line deletes all files in a directory? (visible and hidden files)1
How to count the number of lines in a file in Bash1
Find all rows containing patterns 1 and 2 in a file using Bash2
Display lines containing 'Error' in all .txt files1
What does the shell prompt `user@user:~$` mean?1
Find the default shell for a user in Bash1
Display lines 4 to 12 of a file in Bash