How to group the commands in shell scripting?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does echo mean in scripting?

801


What is bash eval?

768


What is a program shell?

816


Why is it called a shell?

706


What is a scripting language simple definition?

817


What are types of shells?

774


How to redirect both standard output and standard error to the same location?

921


What is path variable bash?

765


State the advantages of shell scripting?

838


Write down the syntax for all the loops in shell scripting.

888


Explain about the exit command?

763


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

811


Explain about debugging?

822


What does sh mean?

813


What exactly is a shell?

821