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

What are filters explain sort with all the options available?

0 Answers  


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

0 Answers  


What is shell terminal?

0 Answers  


What is shell variable?

0 Answers  


what is the difference between cmp and diff commands

2 Answers   Amazon, CTS,






What is awk in shell scripting?

0 Answers  


How do we delete all blank lines in a file?

0 Answers  


Is SSO and SSL support BOXI?

2 Answers  


What is the command to find out today's date?

0 Answers  


write a shell script that counts a number of unique word contained in the file and print them in alphabetical order line by line?

6 Answers   IBM, Wipro,


When you login to a c shell, which script would be run first?

2 Answers  


How will you connect to a database server from linux?

0 Answers  


Categories