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 |
Why is used in shell scripting?
How do I run a script on mac?
How can we find the process name from its process id?
How to take input values from the user?
What is the best scripting language?
Explain how you Automate your application using Shell scripting.
What is the difference between bash and shell?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
what do u mean by $#,$* in unix programming?
How to find duplicate record in file using shell script?
0 Answers IBM, Saama Tech, Wipro,
What is the conditional statement in shell scripting?
What does sh mean?