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 |
Is shell script a programming language?
Why is shell scripting important?
Is shell scripting easy to learn?
What is shell environment?
What are "c" and "b" permission fields of a file?
what is "umask"?
Tell something about the super block in shell scripting?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
how is the oppurtunities for unix in the software
What is shell variable?
Write a command sequence to find the count of each word?
Is scripting and coding the same thing?