Sie sind auf Seite 1von 6

S. No. Experiment 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Write a shell script to print the values obtained by various operators.

Write a shell script to calculate the area of the triangle. Write a shell script to calculate the area of the circle. Write a shell script to calculate the area of the circle using herons formula. Write a shell script to convert the temperature in Fahrenheit to temperature in Celsius Write a shell script to swap two nos. Write a shell script to get basic salary as input add da=40% of basic salary ,hra=20% of basic salary, calculate the gross salary. Write a shell script to accept the distance in km and convert in meters,centimeters and inch. Write a shell script to calculate the simple interest. Write a shell script to calculate compound interest.

Page Date No. 3- Jan12 3- Jan12 3- Jan12 3- Jan12 3- Jan12 3- Jan12 10-Jan12 10-Jan12 10-Jan12 10-Jan12 10-Jan12 10-Jan12 17-Jan12 17-Jan12 17-Jan12 17-Jan12

11. Write a shell script to accept two no from user and display value of first no raised to other. 12. Write a shell script to find sum of n natural nos. 13. 14. Write a shell script to find sum of n even nos. Write a shell script to find sum of n odd nos.

15. Write a shell script to input the cost price n selling price of a item and display profit and loss. 16. Write a shell script to accept the marks obtain by student in 5 subject and print the division according to following criteria: a) %>60 first division

b) 50<%<59 second division c) 40<%,49 third division d) %<40 fail 17. Write a shell script to check weather a given no is even or odd. 18. Write a shell script to find greatest of two nos. 19. Write a shell script greatest of three nos.

20. Write a shell script to perform arithmetic expression using case statement. 21. Write a shell script to calculate factorial nos. 22. Write a shell script to find roots of quadratic equation. 23. Write a shell script to find sum of digits of a no. 24. Write a shell script to find reverse of a given no. find weather a given no is print first n prime no between find weather no is Armstrong print first n Armstrong no print multiplication table of a check weather the given

25. Write a shell script to prime or not. 26. Write a shell script to 1 and 1000 Write a shell script to 27 or not. Write a shell script to 28 between 1 and 1000. Write a shell script to 29 given no. Write a shell script to 30 year is leap or not. 31 * ** *** ****

Write a shell script to print the following pattern :-

17-Jan12 17-Jan12 24-Jan12 24-Jan12 24-Jan12 24-Jan12 24-Jan12 24-Jan12 7-Feb12 7-Feb12 7-Feb12 7-Feb12 7-Feb12 7-Feb12 4-Feb12

***** 32 Write a shell script to print the following pattern :***** **** *** ** * 33 Write a shell script to print the following pattern :* *** ***** ******* ********* 34 Write a shell script to print the following pattern :* ** *** **** ***** 35 Write a shell script to print the following pattern :***** **** *** ** * 36 Write a shell script to print the following pattern :***** **** *** ** * Write a shell script to print the following pattern :28-Feb12 28-Feb12 4-Feb12 4-Feb12 4-Feb12

37

28-Feb-

12 1 12 123 1234 12345 38 Write a shell script to print the following pattern :* ** *** **** *** ** * 39 Write a shell script to print the following pattern :1 121 12321 1234321 12321 121 1 40 Write a shell script to print the following pattern :* * ** ** *** *** **** **** ********* Write a shell script that deletes all lines containing a specified word in one or more file supplied as argument s to it. write a shell script that accept a filename, starting line no and ending line numbers as arguments and displays all the lines between the given line number 28-Feb12 28-Feb12 28-Feb12

41 42

20-Mar12 20-Mar12

43 44

45

46 47

48

49 50 51 52 53

Write a shell script that accepts two integers as its arguments and computes the value of first no raised to the second number Write a shell script that displays a list of all the files in the current directory to which the user has rwx permission. Write a shell script that receives even no of filenames as its arguments and copies the contents of the files at the odd numbered positions on to the files at the following even numbered positions if odd number of filenames is supplied then copying does not take place instead an error message will be displayed. Write a shell script that gets executed displays the message either good morning, good afternoon, good evening and good night. Write a shell script that displays the files in the descending order of their file size in a current directory Write a shell script that takes filenames as its argument and searches for specific word on these files one by one .it stops as soon as the search word is found on a file and reports the name of the file. In case the search word is not found on any of the input files; a suitable message will be displayed. Write a shell script that accepts any no of arguments and prints them in a reverse order. Write a shell script that determines the period for which a specified user is working in the system. Write a shell script to create and maintain telephone directory Write a shell script that accepts some integers no and search a specific number. Write a shell script that computes the different components of the salary according to the following:If basic salary is greater than 10000 the DA is 50%of basic and HRA is 20% of basic

20-Mar12 20-Mar12

20-Mar12

20-Mar12 20-Mar12

3-Apr12 3-Apr12 3-Apr12 3-Apr12 3-Apr12 3-Apr12

otherwise DA is 40% and HRA is 15% of the basic. The total salary is the sum of basic salary, DA ,HRA and outputs them but also generates suitable headings and summary statements like total basic paid, total gross salary paid etc .

Das könnte Ihnen auch gefallen