Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.

Slides:



Advertisements
Similar presentations
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Advertisements

CS Lecture 03 Outline Sed and awk from previous lecture Writing simple bash script Assignment 1 discussion 1CS 311 Operating SystemsLecture 03.
CS Lecture 04 Outline Change your shell Sed and awk Tricks with Bash scripts Assignment 1 discussion 1CS 311 Operating SystemsLecture 04.
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
Shell Script Examples.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Sydney Opera House. Week Three Agenda Administrative Issues Link of the week Review week two lab assignment This week’s expected outcomes Next lab assignment.
Advanced File Processing
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Agenda Introduction Administrative Announcements Link of the Week Expected Outcomes This Week’s Topics Next Week’s Lab Assignment Break Out Problems Upcoming.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
An Introduction to Unix Shell Scripting
Week Three Agenda Administrative Issues Link of the Week Review Week Two Information This Week’s Expected Outcomes Next Lab Assignment Break-Out Problems.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Agenda Introduction Administrative Announcements Link of the Week Expected Outcomes This Week’s Topics Next Week’s Lab Assignment Break Out Problems Upcoming.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
CS 6560 Operating System Design Lecture 3:Tour of GNU/Linux.
Introduction to Linux OS (IV) AUBG ICoSCIS Team Prof. Volin Karagiozov March, 09 – 10, 2013 SWU, Blagoevgrad.
UNIX Shell Script (1) Dr. Tran, Van Hoai Faculty of Computer Science and Engineering HCMC Uni. of Technology
Shell Programming. Introducing UNIX Shells  Shell is also a programming language and provides various features like variables, branching, looping and.
Agenda Introduction Administrative Announcements Link of the Week Expected Outcomes This Week’s Topics Next Week’s Lab Assignment Break Out Problems Upcoming.
Agenda Regular Expressions (Appendix A in Text) –Definition / Purpose –Commands that Use Regular Expressions –Using Regular Expressions –Using the Replacement.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
Week Four Agenda Announcements Link of the week Review week three lab assignment This week’s expected outcomes Next lab assignment Break-out problems.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Agenda Introduction Administrative Announcements Link of the Week Expected Outcomes This Week’s Topics Next Week’s Lab Assignment Break Out Problems Upcoming.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Shell Advanced Features. Module 8 Shell Advanced Features ♦ Introduction In Linux systems, the shells are often referred to as command line interfaces.
Chapter Five Advanced File Processing. 2 Lesson A Selecting, Manipulating, and Formatting Information.
Week Three Agenda Administrative Issues Link of the Week Review Week Two Information This Week’s Expected Outcomes Next Lab Assignment Break-Out Problems.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Sydney Opera House. Week Three Agenda Administrative Issues Link of the week Use of the Virtual Machine Review week two lab assignment This week’s expected.
CSCI 330 UNIX and Network Programming Unit IX: Shell Scripts.
Week Three Agenda Administrative Issues Link of the week Review week two lab assignment This week’s expected outcomes Next lab assignment Upcoming deadlines.
CSCI 330 UNIX and Network Programming Unit I Introduction.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Week Three Agenda Administrative Issues Link of the Week Review Week Two Information This Week’s Expected Outcomes Next Lab Assignment Break-Out Problems.
Agenda Positional Parameters / Continued... Command Substitution Bourne Shell / Bash Shell / Korn Shell Mathematical Expressions Bourne Shell / Bash Shell.
Sydney Opera House. Week Three Agenda Administrative Issues Link of the week Use of the Virtual Machine Review week two lab assignment This week’s expected.
Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected.
Agenda Introduction Administrative Announcements Link of the Week Expected Outcomes This Week’s Topics Next Week’s Lab Assignment Break Out Problems Upcoming.
Week Five Agenda Link of the week Review week four lab assignment This week’s expected outcomes Next lab assignment Break-out problems Upcoming deadlines.
Week Four Agenda Link of the week Review week three lab assignment This week’s expected outcomes Next lab assignment Break-out problems Upcoming deadlines.
1 Week 8 Creating Simple Shell Scripts. 2 Chapter Objectives  In this chapter, you will :  Learn how to create Shell Scripts  Commenting / Making Portable.
CS 403: Programming Languages Lecture 20 Fall 2003 Department of Computer Science University of Alabama Joel Jones.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Week Four Agenda Announcements Link of the week Review week three lab assignment This week’s expected outcomes Next lab assignment Break-out problems.
Tutorial of Unix Command & shell scriptS 5027
ITEC400 Week One Robert D’Andrea
Week Two Agenda Announcements Link of the week Use of Virtual Machine
Week Three Agenda Link of the Week Review Week Two Information
Sydney Opera House.
ITEC400 Week One Professor Robert D’Andrea
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Week Three Agenda Link of the Week Review Week Two Information
Guide To UNIX Using Linux Third Edition
Tutorial of Unix Command & shell scriptS 5027
Introduction to Bash Programming, part 3
Basic shell scripting CS 2204 Class meeting 7
Presentation transcript:

Week One Agenda IntroductionIntroduction Administrative AnnouncementsAdministrative Announcements Link of the WeekLink of the Week Expected OutcomesExpected Outcomes This week’s topicsThis week’s topics Break Out ProblemsBreak Out Problems Next Week’s Lab AssignmentNext Week’s Lab Assignment Upcoming DeadlinesUpcoming Deadlines Question and answerQuestion and answer

Introduction Instructor: Professor Bob D’AndreaInstructor: Professor Bob D’Andrea Program Chair of Information and Technology: Todd WhittakerProgram Chair of Information and Technology: Todd Whittaker Instructor commitment.Instructor commitment.

Administrative Announcements Turnitin.comTurnitin.com Section Number: V1WW Class name: SummerV1WW Enrollment password: summerv1 ClassID: ClassID: Bulletin BoardBulletin Board Proctor Information Student Sign-In Mid-Term Exam Outline (not present) Final Exam Outline (not present) Public Domain Open Source Sign Up cs.franklin.educs.franklin.edu Scripts and text files to be graded should reside under the student’s “/itec400/homework” directory.

Administrative Announcements APA FormatAPA Format Practice scriptPractice script Required directories for class homework scriptsRequired directories for class homework scripts Putty download sitePutty download site Helpful links for Unix and viHelpful links for Unix and vi format for “Subject” line format for “Subject” line

Link of the Week Open Source Software Definition of Open Source Software.Definition of Open Source Software. List of open source products.List of open source products. Who benefits from open source products?Who benefits from open source products? What is shared source?What is shared source?

Expected Outcomes Navigate and explore various aspects of the Linux operating system and use both GUI and command line tools.Navigate and explore various aspects of the Linux operating system and use both GUI and command line tools. To better utilize the Franklin Live tool.To better utilize the Franklin Live tool. Be able to create and execute a script on a virtual machine.Be able to create and execute a script on a virtual machine. What directory path location to store your final lab assignment script.What directory path location to store your final lab assignment script. What file permissions to use for the directories and files.What file permissions to use for the directories and files. How to notify the instructor that your script is ready to be graded.How to notify the instructor that your script is ready to be graded.

This Week’s Topics Review VMware software features Installation Icons in bottom tray ftp files: Start Konqueror File permissions for directories and files.File permissions for directories and files.

Review bash shell syntax Helpful shell syntax:Helpful shell syntax: $# - Number of positional parameters$# - Number of positional parameters $! - Background PID$! - Background PID $? - Return value$? - Return value $$ - Process PID$$ - Process PID $ - Provides the content of a variable ($NUMBER)$ - Provides the content of a variable ($NUMBER) $1, $2, $3 … - The syntax represents the positional parameters on the command line.$1, $2, $3 … - The syntax represents the positional parameters on the command line. exit 0 – The return values is a number from 0 to 255. A value of zero (0) indicates a normal exit.exit 0 – The return values is a number from 0 to 255. A value of zero (0) indicates a normal exit. exit 1 - Indicates a failure.exit 1 - Indicates a failure.

Review bash shell syntax Helpful shell syntax:Helpful shell syntax: “ “ - Double quotes. Removes special meaning of all enclosed characters, except $, `, “, and \.“ “ - Double quotes. Removes special meaning of all enclosed characters, except $, `, “, and \. Example: Print “The price is $Price.\n”; (interpolation)Example: Print “The price is $Price.\n”; (interpolation) ‘ ’ - Literal quotes. Removes the special meaning of all enclosed characters. A single quote cannot appear within single quotes because a single quote denotes the end of the string.‘ ’ - Literal quotes. Removes the special meaning of all enclosed characters. A single quote cannot appear within single quotes because a single quote denotes the end of the string. ` ` - Single Back Slash quotes. Used for command substitution.` ` - Single Back Slash quotes. Used for command substitution. Example: echo The date is `date` (interpolation)Example: echo The date is `date` (interpolation) LINES=`wc -l $ENTRY | cut -c 1-7`LINES=`wc -l $ENTRY | cut -c 1-7` LISTING=`ls -l | cut -f 9`LISTING=`ls -l | cut -f 9` elif [ -d "$1" ]elif [ -d "$1" ] thenthen fifi wc –l - Word count with –l (line option). Print the new line countswc –l - Word count with –l (line option). Print the new line counts ~ - Tilde (~dandrear)~ - Tilde (~dandrear)

Break Out Problems ps –e | wc –lps –e | wc –l who | awk ‘{print $1}’ | sort –u | wc –lwho | awk ‘{print $1}’ | sort –u | wc –l ps –ef | awk ‘{print $1}’ |sort –u | wc –lps –ef | awk ‘{print $1}’ |sort –u | wc –l ls –l | grep –v total | cut –c2-4ls –l | grep –v total | cut –c2-4 ps –ef | awk ‘{print $9, $1}’ps –ef | awk ‘{print $9, $1}’ Shell language command: $#Shell language command: $# Shell language command: for name in *Shell language command: for name in * Shell language command: NUMBER=$(($NUMBER - 1))Shell language command: NUMBER=$(($NUMBER - 1))

Next Weeks Lab Assignment Review Lab Assignment 2-1 Simple Shell scripting.Review Lab Assignment 2-1 Simple Shell scripting. Execute printnum.sh and maxlines.sh scripts on Einstein for students.Execute printnum.sh and maxlines.sh scripts on Einstein for students.

Upcoming Deadlines Lab Assignment 1-2, Install VMware player and Knoppix Virtual Machine, due 5/4/08.Lab Assignment 1-2, Install VMware player and Knoppix Virtual Machine, due 5/4/08. Lab Assignment 1-3, Introduction to Linux, due 5/4/08.Lab Assignment 1-3, Introduction to Linux, due 5/4/08. Lab Assignment 2-1, Simple Shell Scripting, due 5/18/08.Lab Assignment 2-1, Simple Shell Scripting, due 5/18/08. Lab Assignment 4-1, Advanced Scripting, due 5/25/08.Lab Assignment 4-1, Advanced Scripting, due 5/25/08.

Questions and answers Questions?Questions? Comments?Comments? Concerns?Concerns? After class I will help students with their scripts.After class I will help students with their scripts.

Have a good week