How to group the commands in shell scripting?

Answer Posted / tony

The command separator is ;

So, just run:

$ echo Let me wait some time ; sleep 10 ; echo Yes, that is OK

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I edit a .sh file?

621


What are script files?

548


What will happen to my current process when I execute a command using exec?

533


Given a file find the count of lines containing the word "abc".

950


Suppose you execute a command using exec, what will be the status of your current process in the shell?

574






What are the different types of commonly used shells on a typical linux system?

549


What is meant by dos operating system?

570


Why are there shells on the beach?

589


What language is bash written in?

557


What is bash command used for?

579


What makes c shell a more preferable option than the bourne shell?

534


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

752


What is bash used for?

577


What is the best scripting language?

562


Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

795