Page 1 :
DSE - 2: U, , , , ix Shell Programming, , OBJECTIVES:, , To learn the basics of UNIX OS, UNIX commands and File system., To familiarize students with the Linux environment., , To learn fundamentals of shell scripting and shell programming., , To be able to write simple programs using UNIX., , eoee, , Unit-1, , Introduction: Unix Operating systems, Difference between Unix and other operating systems,, Features and Architecture, Installation, Booting and shutdown process, System proc (an, overview), External and internal commands, Creation of partitions in OS, Processes and its, creation phases — Fork, Exec, wait, exit., , , , Unit-2, , User Management and the File System: Types of Users, Creating users, Granting rights, User, management commands, File quota and various file systems available, File System Management, and Layout, File permissions, Login process, Managing Disk Quotas, Links (hard links,, symbolic links), , , , , Unit-3, , Shell introduction and Shell Scripting: Shell and various type of shell, Various editors present, in Unix, Different modes of operation in vi editor, Shell script, Writing and executing the shell, script, Shell variable (user defined and system variables), System calls, Using system calls,, Pipes and Filters., , 31, , , , Unit-4, , Unix Control Structures and Utilitie:, Loops in shell, Functions, Utility program, utility (grep)., , , , Decision making in Shell Scripts (If else, switch),, s (cut, paste, join, tr, uniq utilities), Pattern matching, , Text Books:, 1. Sumitabha, Das, Unix Concepts And Applications, Tata McGraw-Hill Education, 2017, 4/Ed., , Reference Books:, 1, Nemeth Synder & Hein, Linux Administration Handbook, Pearson Education, 2010, 2/ Ed., , , , —2 Practical: Unix Programming Lab, 1. Write a shell script to check if the number entered at the command line is prime or not., , 2. Write a shell script to modify “cal” command to display calendars of the specified months., , 3. Write a shell script to modify “cal” command to display calendars of the specified range of, months., , 4. Write a shell script to accept a login name. If not a valid login name display message, “Entered login name is invalid”., , 5. Write a shell script to display date in the mm/dd/yy format., , a, , Write a shell script to display on the, , , , sorted output of “who” command along with the, , total number of users., , _, , Write a shell script to display the multiplication table of any number., , oo, , . Write a shell script to compare two files and if found equal asks the user to delete the, , duplicate file., , . Write a shell script to find the sum of digits of a given number., , 10. Write a shell script to merge the contents of three files, sort the contents and then display, them page by page., , 11. Write a shell script to find the LCD (least common divisor) of two numbers., , 12. Write a shell script to perform the tasks of basic calculator., , 13. Write a shell script to find the power of a given number., , 14. Write a shell script to find the greatest number among the three numbers., , 15. Write a shell script to find the factorial of a given number.