Top Banner

of 18

Unix File Part 2 all codes Amity University

Jun 02, 2018

Download

Documents

pranav148
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/10/2019 Unix File Part 2 all codes Amity University

    1/18

  • 8/10/2019 Unix File Part 2 all codes Amity University

    2/18

    Experiment 2:WASS which that creates a file containing message of file creation time, no. of users of Unix at the

    moment and list of all users.

    INPUT

    OUTPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    3/18

    Experiment 3:WASS to create a branch \usr directory with depth of D5 and create two files within these folders.

    INPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    4/18

  • 8/10/2019 Unix File Part 2 all codes Amity University

    5/18

  • 8/10/2019 Unix File Part 2 all codes Amity University

    6/18

  • 8/10/2019 Unix File Part 2 all codes Amity University

    7/18

    Experiment 7:WASS to find the area and perimeter of a rectangle.

    INPUT

    OUTPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    8/18

    Experiment 8:WASS to find area and circumference of a circle.

    INPUT

    OUTPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    9/18

    Experiment 9:WASS to create a menu driven program containing 4 options to choose from.

    INPUT

    OUTPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    10/18

    Experiment 10:WASS to print good morning, good afternoon, good evening or good night according to the time.

    INPUT

    OUTPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    11/18

    Experiment 11:WASS to compute factorial of a number.

    INPUT

    OUTPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    12/18

    Experiment 12:WASS to change the extension of .txt files to .doc.

    INPUT

    OUTPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    13/18

    Experiment 13:WASS to redirect output of date command w/o time command into a file.

    INPUT

    OUTPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    14/18

    Experiment 14:WASS which takes a command line argument in kms and gives options to convert it into dms or cm

    INPUT

    OUTPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    15/18

    Experiment 15: WASS to rename each file in directory with a PID extension, keeping the directories unaltered.

    INPUT

    OUTPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    16/18

    Experiment 16:WASS to print the Fibonacci series.

    INPUT

    OUTPUT

  • 8/10/2019 Unix File Part 2 all codes Amity University

    17/18

    INDEX

    S.NO. Experiment Sign.

    1. WASS which asks for your name, age, department and course and

    display the information.

    2. WASS which that creates a file containing message of file creationtime, no. of users of Unix at the moment and list of all users.

    3. WASS to create a branch \usr directory with depth of D5 and createtwo files within these folders.

    4. WASS to display result in terms of percentage and show themessage whether a student got distinction, first division, second div,

    third div or failed.

    5. WASS to calculate gross salary, using basic pay, HRA and DA.

    6. WASS to convert distance in kms to meters, feet, inches and cms.

    7. WASS to find the area and perimeter of a rectangle.

    8. WASS to find area and circumference of a circle.

    9. WASS to create a menu driven program containing 4 options tochoose from.

    10. WASS to print good morning, good afternoon, good evening orgood night according to the time.

    11. WASS to compute factorial of a number.

    12. WASS to change the extension of .txt files to .doc.

    13. WASS to redirect output of date command w/o time command into

    a file.

    14. WASS which takes a command line argument in kms and gives

    options to convert it into dms or cms.15. WASS to rename each file in directory with a PID extension,

    keeping the directories unaltered.

    16. WASS to print the Fibonacci series.

  • 8/10/2019 Unix File Part 2 all codes Amity University

    18/18