How to group the commands in shell scripting?
Answers were Sorted based on User's Feedback
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 |
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 |
determine the output of the following command: echo ${new:-variable}
How to open a read-only file in the shell?
What is basename in shell script?
How do I open a jshell in cmd?
Write a shell program to test whether a given number is even or odd?
What language is bash written in?
What is the need of including script interpreter in your shell script?
What is use of "cut" command?
How to pass an argument to a script?
Can you write a script to portray how set –x works?
How do I start a shell script?
How to modify the PATH variable and make it executable?