Download presentation
Presentation is loading. Please wait.
Published byShawn Dixon Modified over 9 years ago
1
Xuan Guo Review 2 Xuan Guo CSC3320 1
2
Xuan Guo Redirection Command Substitution Subshell Quoting Termination and Exit codes Exporting Variables Background processing Job Control Control structures (for, if, while) Function CSC3320 2
3
Xuan Guo ls wc egrep awk echo read ps kill export sleep cp uniq cat CSC3320 3
4
Xuan Guo Example 1 Write a script to check the giving email address is valid or not. Let the user choose to continue or not. CSC3320 4
5
Xuan Guo Example 2 Write a script to calculate the summation of all integer numbers between 1 and 100 that are divisible by 4. CSC3320 5
6
Xuan Guo Example 3 There are two files with people’s names and their ages. file1.txt, file2.txt Write a script to merge the names into a single file without duplicates. CSC3320 6 Allen,21 Bob,22 Carl,23 Kevin,19 Tomy,18 Jack,20 Tomy,18 Bob,22 Carl,23 Allen,21 John,19 Jack,20
7
Xuan Guo Example 4 Write a script which accepts a name as input to find the age information from the files given by the users. If the name does not exist in the these two files, display a message “no such person exist.” CSC3320 7
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.