Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Pure VPN - Up to 27 Months
vgp
Updated:
Friday at 8:10 AM
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
May 30, 2026
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Me bash script eka how?
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="hecker_thama" data-source="post: 28643020" data-attributes="member: 582558"><p>[CODE=bash]#! /bin/bash</p><p>function firstfunction(){</p><p> echo "We are checking you are 18+"</p><p> echo $1 $2 $3 $4 $5 $6</p><p>}</p><p>firstfunction Hi this is a linux king!</p><p></p><p>function secondfunction(){</p><p> read -p "Enter your name: " name_val</p><p> read -p "Enter your country name: " country_val</p><p> read -p "Enter your age: " age_val</p><p>}</p><p>secondfunction</p><p></p><p>function checkingfun(){</p><p> if (( age_val==18 ));</p><p> then</p><p> echo "Thopita mona 18+ da? Kalu ketha jarawa!"</p><p> </p><p> elif (( age_val>18 )) && (( age_val<35 ));</p><p> then</p><p> echo "nice...."</p><p> sleep 3</p><p> echo "Menna thoge ticket eka!"</p><p> </p><p> elif (( age_val>18 )) && (( age_val>35 ));</p><p> then</p><p> echo "Naki thopiwa pollen gahala maranne!"</p><p></p><p> else</p><p> echo "pala podi cariya!"</p><p> fi</p><p>}</p><p>checkingfun</p><p></p><p>echo "---------------------------------"</p><p>echo "Name: $name_val"</p><p>echo "Country: $country_val"</p><p>echo "Age: $age_val"</p><p>echo "$(date)"</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="hecker_thama, post: 28643020, member: 582558"] [CODE=bash]#! /bin/bash function firstfunction(){ echo "We are checking you are 18+" echo $1 $2 $3 $4 $5 $6 } firstfunction Hi this is a linux king! function secondfunction(){ read -p "Enter your name: " name_val read -p "Enter your country name: " country_val read -p "Enter your age: " age_val } secondfunction function checkingfun(){ if (( age_val==18 )); then echo "Thopita mona 18+ da? Kalu ketha jarawa!" elif (( age_val>18 )) && (( age_val<35 )); then echo "nice...." sleep 3 echo "Menna thoge ticket eka!" elif (( age_val>18 )) && (( age_val>35 )); then echo "Naki thopiwa pollen gahala maranne!" else echo "pala podi cariya!" fi } checkingfun echo "---------------------------------" echo "Name: $name_val" echo "Country: $country_val" echo "Age: $age_val" echo "$(date)" [/CODE] [/QUOTE]
Insert quotes…
Verification
Asuwa dahayen wadi kalama keeyada?
Post reply
Top
Bottom