shell statement
shell statement
1 Write a shell script to Display Good Morning, Evening, Afternoon and Night based on time
2 Write a shell script to Find factorial of a given number
3 Write a shell script to Check whether given number is prime or not
4 Write a shell script to count the number of vowels in a text file vowel.txt to be created by user.
Write a shell program to create a directory “DISC” in the current directory, and then transfer all
5 the files having filename starting with “d” from the current directory to the directory “DISC”.
Write a shell script which deletes all odd numbered lines in a text file and display the
6 altered output in a separate file.
7 write a shell script to read a text file, count the special /other symbols in it (#,$,&.? Etc)
Write a shell script to display the smallest file name(in respect of the string length) among the
8 list of files available in the current directory.
9 Write a shell script to write the initials of any name given as input
Write a shell script which produces a report from the output of ls –l in the following form:
Only regular files, directories and symbolic links are printed.
The file type and permissions are removed
A / character is appended to each directory name and the word DIR is printed at the beginning
of the line
10
Write a shell script which produces a report from the output of ls –l in the following form:
Only regular files, directories and symbolic links are printed.
The file type and permissions are removed A @ character is
appended to each symbolic link name and work LINK is printed at the beginning of the line
11
12 write a shell script that print the smallest digit of a given number
13 Shell program to count Vowels, blank spaces, characters, number of line and symbols
14 Write a shell script to display filename having maximum size in home directory.
15 Write a shell script to display filename having minimum size in home directory.
16 Write a shell program to print fibonacci series.
Write a shell script to translate all the characters to lower case in
17 a given text file.
18 Write a shell program to search given string into another string.
Write a shell script to enter the name and three subject marks of a student and calculate the
total and percentagea) First class if percent >-60 b) second class if percentage >=45 and < 60 c)
19 Third class if percentage <45 and > =40 else fail
20 Write a shell program to deminstrate use of various commnad line arguments
Write a shell script using function for following:1)average of given numbers 2) Max from given
21 numbers and 3) min from given numbers
Write a shell program to display all the files under current directory which starts with vowel and
22 ends with number
23
Code complete
DEAD