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 |
What is shell and shell script?
How to get the first line from a file using just the terminal?
Why is used in shell scripting?
Which is better perl or shell scripting?
Which scripting language is best for automation?
What is meant by $1 in shell script?
wats the deinitions for shell utility and filter?
What does chmod do?
Write a shell script to check whether a number is Armstrong number or not?
How do I run a shell script on a mac?
How to find duplicate record in file using shell script?
0 Answers IBM, Saama Tech, Wipro,
How will you pass and access arguments to a script in linux?