Question: 1) Write a single line UNIX command to list all sh files matching the multiple conditions below: at directory /home/test filename containing exam 2) Write
1) Write a single line UNIX command to list all sh files matching the multiple conditions below: at directory "/home/test" filename containing "exam"
2) Write a single line UNIX command to check if "/home/exam2" in the PATH variable.
3) How to obtain the value of command line arguments in a shell program?
4) Write a single line UNIX command to run an executable Java program Hello at background and output the number of lines in the result.
5) Define a symbolic constant(macro) DATA to represent value 3.32 in C .
6) Write a single line UNIX command to output the returned value of last command.
7) In the format string %-8.3lf, explain the meaning of 8, 3 and lf respectively. And what will be printed for expression 123.3455 with this format string?
8) Rewrite the following loop so that its body is empty: for (i = 10; i > m; i--) m=i+m;
9) Rewrite the following if else statement so that only a single line statement is needed: if(n%5||n==3) return n; else return n+1;
10) What are the difference between [ $x == $y ] and [ $x -eq $y ]?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
