Question: Write Shell Script for following (a)Write shell script to convert given binary number to hexadecimal number. (b) Write a script, which finds the prime factors
Write Shell Script for following
(a)Write shell script to convert given binary number to hexadecimal number. (b) Write a script, which finds the prime factors of a given number. (c) Write a script, which finds the total number of blank lines in the given file. (d) Write a script, which prints good morning or good evening depending on the login time of the user. (e) A shell script, which reports the names and sizes of all the files in a directory whose size exceeds 1000 bytes, in descending order of their sizes and the total number of such files.
(f)A shell script, which takes as command line input a number n, and a word. It then prints the word n times, once on each line. (g) Write a shell script which will take file name as argument and check whether the file file name is a dir or not and then proceed further only if it is a dir, else give usage message. The script should then print in the tabular format, name of each sub-dir (within the argument dir) and a count of the number of top level files in that sub-dir. Modify the program to work with multiple number of arguments, too. name is a dir or not and then proceed further only if it is a dir, else give usage message. The script should then print in the tabular format, name of each sub-dir (within the argument dir) and a count of the number of top level files in that sub-dir. Modify the program to work with multiple number of arguments, too. size exceeds 1000 bytes, in descending order of their sizes and the total number of such files.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
