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

How many fields are present in a crontab file and what does each field specify?

0 Answers  


What does egrep mean?

0 Answers  


How do I run a shell script in powershell?

0 Answers  


What are the advantages of shell scripting?

0 Answers  


Explain about "s" permission bit in a file?

0 Answers  


What is $1 in shell scripting?

0 Answers  


What is shell scripting used for?

0 Answers  


Why are shell scripts used?

0 Answers  


Which shell is the best?

0 Answers  


What is a shell in operating system?

0 Answers  


Which is better perl or shell scripting?

0 Answers  


In shell scripting if text is surrounded by single quotes what does it denotes?

3 Answers  


Categories