Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to group the commands in shell scripting?

Answers were Sorted based on User's Feedback



How to group the commands in shell scripting?..

Answer / linuxdemon(vjsujay@gmail.com)

(unix cmd 1; unix cmd2)

eg:

ubuntu@ubuntu:~$ (w > fname ; wc -l fname)
10 fname
ubuntu@ubuntu:~$

Is This Answer Correct ?    10 Yes 2 No

How to group the commands in shell scripting?..

Answer / 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

More Shell Script Interview Questions

determine the output of the following command: echo ${new:-variable}

0 Answers  


How to open a read-only file in the shell?

0 Answers  


What is basename in shell script?

0 Answers  


How do I open a jshell in cmd?

0 Answers  


Write a shell program to test whether a given number is even or odd?

8 Answers  


What language is bash written in?

0 Answers  


What is the need of including script interpreter in your shell script?

2 Answers  


What is use of "cut" command?

3 Answers  


How to pass an argument to a script?

0 Answers  


Can you write a script to portray how set –x works?

0 Answers  


How do I start a shell script?

0 Answers  


How to modify the PATH variable and make it executable?

3 Answers   Mind Tree,


Categories