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 are the different types of shell scripting?
What is .sh file in mac?
What is the command for " how many shell is running in your system or how many shell supported by your system " ?.
Is shell scripting useful?
Why is the use of shell script?
How do I run a shell script on a mac?
How do I run a shell script in powershell?
What is INODE?
How to open a read-only file in the shell?
How do you find out What is your shell?
What is the default shell of solaris?
Which is better perl or shell scripting?