Freelancer's Playground! New knowledges every now and then

23Aug/088

Clever Use of Alias

My friend, Rio has made a tutorial on how to write a bash script that use our own mother language.
So, instead of using this snippet:

echo -e "\n-------- CONTOH PERULANGAN ---------"
for (( i=1; i<=5; i++ ))
do
   echo -n "$i "
done

We'll do it this way:

cetak -e "\n-------- CONTOH PERULANGAN ---------"
untuk (( i=1; i<=5; i++ ))
lakukan
   cetak -n "$i "
selesai
Tagged as: , , 8 Comments