Linux Basic -101 - Part-2 slides

86 views
Skip to first unread message

Boon Leong Ong

unread,
Oct 5, 2014, 2:51:26 AM10/5/14
to embedded-linu...@googlegroups.com
$scp <chester's username>@<chester'IP>:/home/<chester's username>/linux-student.txt  .
$vi linux-basic-101.sh

---

1   #!/bin/bash
3   for student in `cat linux-student.txt` ; do
4       printf "%s - is awesome without a lot of interactions \n"  $student
5   done
6
7   if [ $1 == "dislike" ]; then
8     #goto last_page
9     # do the assignment
10   printf  "You are great leaner and keep it up!!! \n"   
11 else
12    # enjoy your weekend
13     # goto last_page
14     # do the assignment
15   printf  "You are good leaner too. \n"
16  fi

<ESC>
:%s#without#with#g 

<ESC>
:7
:s/dislike/enjoy/g
:wq

---

$ chmod + linux-basic-101.sh
$ ./linux-basic-101.sh enjoy
$ rm 02-Linux-Basic-101-part-1.pdf   # because 02-Linux-Basic-101.pdf  is a newly updated note and 02-linux-Basic-101-part-1.pdf is now obsolete. 

02-Linux-Basic-101.pdf

Brown

unread,
Oct 9, 2014, 1:10:15 AM10/9/14
to embedded-linu...@googlegroups.com
Hi Boon Leong,

    Will there be class tomorrow? 

 

 

Boon Leong Ong

unread,
Oct 9, 2014, 1:26:59 AM10/9/14
to embedded-linu...@googlegroups.com
Hi Brown,
      There is no class tomorrow. Chester and I talked about this after last Friday meet-up. We think that it will be good to have gap of 2-3 weeks so that to give chance for those who left out the course to catch-up.
      This will ensure as we move to next level, those committed and interested will take full advantage of it. 

Thanks for your interest anyway!
Cheers
Boon Leong
Reply all
Reply to author
Forward
0 new messages