Write a shell script with a size() function to find the total size of the files passed as arguments.
Write a shell Script to Delete All Even Numbered Line from a Text File
Write a shell script to accept student information like name, class, and 3 subject marks. Calculate the total and average. The result will be displayed based on average. If avg >=90 (Distinction), avg >=60 and avg<90 (First class), avg>=35 and avg<=59(Second class), avg <35 (Fail).
Write a shell script to accept student information like name, class, and 3 subject marks. Calculate the total and average. The result will be displayed based on average. If avg >=90 (Distinction), avg >=60 and avg<90 (First class), avg>=35 and avg<=59(Second class), avg <35 (Fail).
Write a shell script to read in two numbers and display the number divisible by the first number in the given range.
Write a shell script to input a directory name and display the number of files and sub-directories present in the given directory.
Shell script to count the number of times a given user has logged in.
Write a shell script to search an element in an array and display its position if found; else display an appropriate error message.
Shell script to input a number and count the number of occurrences of a given digit in the number
Write a shell script to input a directory name and display the number of files and sub-directories present in the given directory.
Shell script to count the number of times a given user has logged in.
Write a shell script to search an element in an array and display its position if found; else display an appropriate error message.
Shell script to input a number and count the number of occurrences of a given digit in the number
Write a shell script menu-driven program to let it offer the user the choice of copy, remove, rename, and exit. Once the user has made a choice, have the program ask the user for the necessary information, such as the file name, new name, and so on.
Write a shell script to enter login name as command-line argument and report when that user has logged in.
Write a shell script to enter login name as command-line argument and report when that user has logged in.
Write a shell program to prepare electricity bill by entering meter number, previous reading and current meter reading. The amount is calculated based on the following conditions:If unit=0, then charge =40. If unit>0 and unit <=100 then charge=unit * 1. If unit>100 and unit <= 300 then charge=100+ (unit-100)*1. If unit>300, then charge=300+ (unit-300)*2.
Write a Shell program to count the number of users who are currently logged in and display an appropriate message when a user logs in.
Write a Shell program to find n! / r!
Write a shell script to input two numbers m and n. Display the multiplication table of the number m up to n times.
Write a Shell program to count the number of users who are currently logged in and display an appropriate message when a user logs in.
Write a Shell program to find n! / r!
Write a shell script to input two numbers m and n. Display the multiplication table of the number m up to n times.
Write a shell script to input a file name and a string and display the number of lines in the file that does not contain the given word.
Write a shell script that receives two file names as arguments. It should check whether the two file contents are the same or not. If they are the same then the second file should be deleted.
Write a shell script to input a file name and display all its properties like File Name:, Access Permission:, Last modification time:, Size of the file:, Number of links:, User name:.
Write a shell script to reverse print the positional parameters.
Write a shell script to convert the file name and its contents to upper case.
Write a shell script that receives two file names as arguments. It should check whether the two file contents are the same or not. If they are the same then the second file should be deleted.
Write a shell script to input a file name and display all its properties like File Name:, Access Permission:, Last modification time:, Size of the file:, Number of links:, User name:.
Write a shell script to reverse print the positional parameters.
Write a shell script to convert the file name and its contents to upper case.
No comments:
Post a Comment