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

  Consider which properties could be verified

define that some properties that can only be validated originally can be approximately transformed to properties that could be verified.

  Find out if they can be formed into a triangle

Write down a JavaScript program that allows a user to input three integers using text boxes in a form. (Hint: You need to use the built-in parseInt function to convert the input strings to integers.) Test the three integers to determine if they ca..

  How can be secure mail infrastructure using identities

How can be secure mail infrastructure using identities.What may be a new approach to secure mail infrastructure?

  Generate a work breakdown structure code

Generate a Work Breakdown Structure Code

  Define concepts involved in the design of web pages

First, explain in general terms what you think the role of good design is. Next, identify three characteristics of an effective gallery website. Then find an example of a portfolio website containing thumbnail imagery.

  Produce a state transition diagram

Produce a state transition diagram

  Examine how computer forensics investigations pertain to law

Examine how computer forensics investigations pertain to law

  What represent the length and width of a room in feet

build a Java class that declares variables to represent the length and width of a room in feet. Assign appropriate values to the variables. calculate and display the floor spae of th eroom in square feet (area = length * width). Display explnatory ..

  What will be the exercise ratio of men and women

What will be the exercise ratio of men and women? Results indicated that women averaged 2 hours per week and men averaged 1.25 hour per week.

  Make a 2010 word flowchart listing the steps

You are sitting on a chair in a large room. You see an empty chair, facing you, across the room. You want to get to that chair on the other side of the room and sit in it.

  Effects of technology

Select a new technology that interests you and analyze it from the sociological point of view. What do you consider this technology would contribute towards the society?

  Design an application that instantiates five clients

The law firm of Howard, Fine and Howard wants to develop two classes- a Client class that holds data about the firm's clients and an attorney class that holds data about each of attorneys who work for the firm.

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