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

Explain about the exit command?

572


What are the four fundamental components of every file system on linux?

1171


What is shell environment?

548


Explain about echo command?

630


What are the different types of shell scripting?

542






What is the first line in a shell script?

562


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

646


How will you copy a file from one machine to other?

554


What is a file basename?

598


Explain about shebang?

624


What does .sh file contain?

561


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

546


How do I debug a shell script?

573


Which is better perl or shell scripting?

569


What is bourne shell scripting?

537