hello.sh#!/bin/bash
# Accessing command-line arguments
name=$1
wayasa=$2
# Printing the arguments
echo "Hi $name You are $wayasa old"
oka run krn widiha:
bash hello.sh Ravindu 18
Output:
Hello Ravindu You are 18 years old
othana Ravindu kiynne palaweni argument ek. 18 kiynne dewani ek
User ekka interact wenne nthi scripts hdaddi oma liynne. ex: build files. ewa build number ek wge uniq ewa args walin dunnahaki script ekt