Professional Documents
Culture Documents
OPEN PROJECT
Team 6
ABIN PAUL
HARIKRISHNAN M R
KRISHNAPRASAD AYYAPPAN
ALEX JOBY
GAUTHAM SUMEER K S
AFWAN SHA J
AKSHAY M M
BASIL DENNY
1. Write a shell script to greet the system user by checking the
system time
#!/bin/bash
current_time=$(date +%H)
Output
Good Morning, !
2. Write a shell script to read and print four command line arguments
#!/bin/bash
if [ $# -ne 4 ]; then
echo "Usage: $0 arg1 arg2 arg3 arg4"
exit 1
fi
arg1=$1
arg2=$2
arg3=$3
arg4=$4
Output
Argument1: Hello,
Argument2: How
Argument3: are
Argument4: you!!!