Could an until loop sometimes never execute

Assignment Help Computer Engineering
Reference no: EM1336598

Give brief answers for the following questions.

1. Can an until loop sometimes never execute?

2. Will the following script execute with no errors?

#!/bin/csh
for I
do
echo $I
done

3. Does the following script print to standard output, a list of numbers equal to the number passed on the command line?

#!/bin/sh

count=$1

index=1
while [ "0$index" -le $count ]
do
echo $index
index=`expr "$index" + 1`
done

4. Will the following statement print 'I am glad this class is over' to standard output if the shell variable XYZ is NULL or not set?

: ${XYZ:?"I am glad this class is over"}

5. After the statement

: ${VISUAL:=vi}

will the value of the shell variable VISUAL always be vi?

6. Will the following command execute:

${VISUAL:+vi} ls

the command 'ls' if the shell variable VISUAL is not set or null?

7. Will the following commands send to the line printer all files whose contents contain the text '/bin/sh' if the command to print is lpr ?

MATCH=`grep -l '/bin/sh' *`
lpr ${MATCH?"NO files found"}

Reference no: EM1336598

Questions Cloud

Write down a shell script to send a customized : Write down a shell script to send a customized mail message to the users listed on the command line by login (user) name, only if they are currently logged on. If no users are listed on the command line, an error message should be printed.
Lucidate what will happen to the economy in the short run : If the government decides to intervene to return the economy to full employment, elucidate what will happen to the economy in the short run and in the long run.
Explain important information about marketing discussion : Explain Important information about Marketing Discussion and Most discussions of marketing strategy focus on large businesses like Procter and Gamble
Forecast the next period using simple exponential smoothing : Calculate the forecast for the next period using simple exponential smoothing.
Could an until loop sometimes never execute : could an until loop sometimes never execute.
Utlizing the aggregate demand and aggregate supply : Utlizing the aggregate demand and aggregate supply model, draw an economy in a boom.
Concept of victim precipitation supported by evidence : Why is the concept of victim precipitation so controversial? Do you feel the concept is adequately supported by evidence?
Suppose the script ran under the bourne shell : suppose the script ran under the Bourne shell.
Explain marketing mix impact the marketing strategy : Explain Marketing mix and explain how the elements (product, place, price, and promotion) of the marketing mix impact the development of the organization's marketing strategy and tactics

Reviews

Write a Review

Computer Engineering Questions & Answers

  Developing the modular program

Develop the modular program which asks user in order to enter the monthly costs for following expenses incurred from the operating his or her automobile: loan payment, gas, insurance, oil, tires, and maintenance.

  Developing the algorithm and analyzing its running time

Katt wishes you to develop an algorithm that, provided a string X, computer efficiently how many ways X can be broken up into the sequence of words.

  Write down a class named testscores

Write down a class named TestScores. The class constructor should accept an array of test scores as its argument. The class should have a process that returns the average of the test scores.

  Decision-making process

Banner advertising on the Web sites helps activate the realization that there is a gap between the reality and desired state that happens in the --------------- stage of EC purchase decision-making process.

  What is the normalization

What needs must a two-dimensional table satisfy in order to be a relation? Provide an example of a table that is a relation.

  The most important roles in systems development

How have the roles of systems analysts and end users changed in the past 20 years? What are the benefits and drawbacks to these changes.

  How to create two arrays of integers

create two arrays of integers, each holding ten elements of data. Create a third array of integers for a result array. Your main program will take the two arrays of integers and pass them to the function subtract().

  Designing the flow chart

Draw a flowchart describing the following given situations: The data found on employee time cards are keyed onto the hard disk before they are processed by the computer.

  Different internet access systems

Different Internet access systems are asymmetric, with the higher downstream speeds rather than the upstream speeds. Is this better for the client PC access to web servers? Explain. Does it matter for the client access to the e-mail servers? Explain.

  Developing the flowchart using visual logic

Develop a flowchart by using the Visual Logic for a program which accepts a candy name.

  The printed newspaper''s popularity is declining

Some people lament the fact that the printed newspaper's popularity is declining so alarmingly that some of the children of the new generations have never read (or will read) a printed newspaper.

  Give process that occurs between a client and web server

define the process that occurs between a client and Web server by describing the functionality of the OSI reference model. Diagram the interaction between the client and the server and illustrate the data flow.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd