Preview

Unix Programming

Powerful Essays
Open Document
Open Document
877 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Unix Programming
Table of Contents
INTRODUCTION 3
SCRIPT 4
TESTING 7
Testing with valid inputs 7
Testing with invalid inputs 8
CONTENTS OF THREE FILES (TEXTS) 10
A1 10
N1 10
M1 10
CONCLUSION 11
REFERENCES 12

INTRODUCTION
The main objective of this course work is to develop a small program in the UNIX environment either by using Bash shell or Korn shell. After creating the program, the students have to test the program for any errors/bugs. If any errors are found the students are required to diagnose/troubleshoot the bugs.
This type of course work is very helpful to the IT students especially to those students who want to build their future milestone in computing. SCRIPT print print "Welcome to the program. Your ID is "$2 print "You are "$1 date mainloop="yes" until [ $mainloop = "no" ] do rloop="yes" while [ $rloop = "yes" ] do print print "#### Regions of Nepal #####." print print "Z1 Eastern" print "Z2 Central" print "Z3 Western" print "Z4 Mid Western" print "Z5 Far Western" print print "Choose your birth place:\c" read bplace case $bplace in Z1) print "You chose Eastern" print "Illam lies in this region" rloop="no" ;; Z2) print "You chose Central" print "kathmandu lies in this region" rloop="no" ;; Z3) print "You chose Western" print "Pokhara lies in this region" rloop="no" ;; Z4) print "You chose Mid Western" print "Karnali lies in this region" rloop="no" ;; Z5) print "You chose Far Western" print "Doti lies in this region" rloop="no" ;; *) print "You are out of track choose again." rloop="yes" ;; esac done loop="no" until [ $loop = "yes" ] do print print "#### Tribes of Nepal ####" print print "N1 Newari" print "M1 Maithili" print "B1 Bhojpuri" print "A1 Arya" print "MN1 Mangol" print "K1 Krati" print "Bh1 Bharopeli" print print "Choose any three [remember to keep spaces] :\c" read tribe1 tribe2 tribe3

tloop="no" until [



References: • London Metropolitan University, (n.d.). Operating System [online] available at:< http://learning.londonmet.ac.uk/computing/IC_Link/Comp/modules/cc2011/WeekByWeek.html> [Accessed OCT 10, 2012 ]

You May Also Find These Documents Helpful

  • Powerful Essays

    Pos420 Final Paper

    • 2424 Words
    • 10 Pages

    Tackett, J. and Gunter, D. (1997). Special edition. Using Linux. 3rd edition. Indianapolis, IN. QUE Corporation.…

    • 2424 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    POS-355 Week 5 Operating Systems Analysis 10 Slides with Speaker Notes - Team B new ver.ppt…

    • 400 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Intro to Unix Project 2

    • 636 Words
    • 3 Pages

    2- Description of pipes: The symbol | is the Unix pipe symbol that is used on the command line. What it means is that the standard output of the command to the left of the pipe gets sent as standard input of the command to the right of the pipe. Note that this functions a lot like the > symbol used to redirect the standard output of a command to a file. However, the pipe is different because it is used to pass the output of a command to another command, not a file.…

    • 636 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Stallings, W. ((2015)). Operating Systems: Internal and Design Principles, 8e. Retrieved from The University of Phoenix eBook Collection Database.…

    • 472 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    1P01outline

    • 428 Words
    • 3 Pages

    This course introduces the basic concepts and terminology of computing. Its content is aimed at students…

    • 428 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    New Deal Dbq

    • 875 Words
    • 4 Pages

    1. Which of the following was not a significant motivation behind the New Deal? => reviving America's commitment to family values at a time when they seemed to be in decline…

    • 875 Words
    • 4 Pages
    Good Essays
  • Best Essays

    Unix/Linux

    • 2760 Words
    • 12 Pages

    Windows, a much younger operating system, released in 1985, has exponentially grown in popularity ever since. Windows popularity is the biggest reason that it suffers malicious attacks more than any other operating system available. The numerous attacks…

    • 2760 Words
    • 12 Pages
    Best Essays
  • Powerful Essays

    The following information will introduce general knowledge in basic programming concepts. It shall discuss basic types of computer programming languages as-well-as program development. There are three basic types of computer programming languages that will be discussed in a simple and easy to understand manner. We shall also describe the program development cycle and discuss why it is important to use a structured and organized process to create a computer programming language.…

    • 1318 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Syllabus IT/205

    • 2628 Words
    • 11 Pages

    This course introduces students to the world of information technology. Students will examine the technology concepts included in business systems, networking and project management and explore the systems development life cycle. Specific topics for the course include: hardware components, software applications, operating systems, databases, programming, as well as the security, privacy, and safety issues associated with information technology.…

    • 2628 Words
    • 11 Pages
    Satisfactory Essays
  • Good Essays

    Comparing Primitives vs Comparing Strings There is a difference Comparing Primitives • Primitives are compared with an operator: = = < <= > >= ! = //given…

    • 464 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Palindrome

    • 1937 Words
    • 8 Pages

    PALINDROME #include <stdio.h> #include <string.h> int main() { char a[100], b[100]; printf("Enter the string to check if it is a palindrome\n"); gets(a); strcpy(b,a); strrev(b); if( strcmp(a,b) = = 0 ) printf("Entered string is a palindrome.\n"); else printf("Entered string is not a palindrome.\n"); return 0; } PRIME NUMBER OR NOT #include<stdio.h> main() { int n, c = 2; printf("Enter a number to check if it is prime\n"); scanf("%d",&n); for ( c = 2 ; c <= n - 1 ; c++ ) { if ( n%c == 0 ) { printf("%d is not prime.\n", n); break; } } if ( c == n ) printf("%d is prime.\n", n); return 0; } ARMSTRONG OR NOT #include <stdio.h> int main() { int number, sum = 0, temp, remainder; printf("Enter an integer\n"); scanf("%d",&number); temp = number; while( temp != 0 ) { remainder = temp%10; sum = sum + remainder*remainder*remainder; temp = temp/10; } if ( number == sum ) printf("Entered number is an armstrong number.\n"); else printf("Entered number is not an armstrong number.\n"); return 0; } OR #include<stdio.h> void main() { int num,num1,arms=0,rem; printf("Enter the number:\n"); scanf("%d",&num); num1=num; while(num>0) { rem=num%10; arms=arms+rem*rem*rem; num=num/10; } if(num1==arms) { printf("…

    • 1937 Words
    • 8 Pages
    Good Essays
  • Good Essays

    System.out.println("Welcome to Airline Services. We Provide best flights and deals from Delhi and Mumbai to many cities Domestic as well as International");…

    • 5155 Words
    • 21 Pages
    Good Essays
  • Good Essays

    Unix

    • 789 Words
    • 4 Pages

    "UNIX was the first operating system designed to run on ‘dissimilar ' computers by converting most hardware specific commands in machine language into an independent programming language called ‘C '" . UNIX was the basis of AT&T 's telephone system and the government 's wide area network system. Then it became the basis of communication between engineers and scientists, and eventually the basis of communication for everyone worldwide. It has held this remarkable spot since 1969.…

    • 789 Words
    • 4 Pages
    Good Essays
  • Better Essays

    IF STATEMENT SAMPLE 1 <?php $studentId = 'A1110601'; if ( $studentId == 'A1110601' ) { echo ' Student ID: '.$studentId. '<br/>'. ' Welcome! Inah Ysabela Marie D. Alegre'; } ?> SAMPLE 2 <?php $birthdate = 'April 8, 1995';…

    • 989 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    File Management

    • 463 Words
    • 2 Pages

    Stallings, W. (2012). Operating Systems: Internals and Design Principles (7th ed.). Boston, MA: Prentice Hall.…

    • 463 Words
    • 2 Pages
    Satisfactory Essays

Related Topics