-2
votes
1answer
2k views

Explain the behavior of the following shell script [closed]

Explain the behavior of the following shell script: $ cat quote_demo twoliner="This is line 1. This is line 2." echo "$twoliner" echo $twoliner How many arguments does each echo command see in ...
0
votes
1answer
168 views

How to write a script that does what less does?

Question: Create a script such that it is a command that has the same effect as the "less" command (implement the script by calling "less"). What I wrote: #! /bin/bash for index in "$@" do less ...
3
votes
4answers
931 views

Unix Interview Question

I am giving some interviews right now and recently I was asked this questions in Interview and I was not sure of the answer, in your opinion are this kind of questions worthwhile for Interview process ...