UNIX/Linux Programming Answers

Questions: 89

Answers by our Experts: 89

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a shell script to determine if an input number is a palindrome or not.



Write a shell script that, given a file name as the argument will write the even numbered line to a file with name even file and odd numbered lines in a text file called odd file.



Write a menu driven shell script using the select statement to print calories for food items such as pizza, burger, Salad, Pasta etc



Write a shell script for the following question



Disk space status



Write a shell script for the following questions;


Accessing data from a file (the file could be database, log, or text file)


Including the initial parent process, how many processes are created

by the program given below?

int main()

{

/* fork a child process */

fork();

/* fork another child process */

fork();

/* and fork another */

fork();

}


what is the ls option to print out only the author of a file name?


Write a script which does ls to a non-existent file. Display an exit status of the

previous command. Now create the file and again display the exit status


marks obtained by a student in two different subjects are input through the keyboard.


The student gets a division as per the following rules. (Using elif clause).


if percentage greater than or equal to 60 get First division


if percentage greater than or equal to 50 or less than 60 get Second division


if percentage greater than or equal to 40 or less than 50 get Third division


if percentage less than 40 Fail.

Write a shell script to compare two strings input by the user for equality.

LATEST TUTORIALS
APPROVED BY CLIENTS