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 |
How many fields are present in a crontab file and what does each field specify?
What does egrep mean?
How do I run a shell script in powershell?
What are the advantages of shell scripting?
Explain about "s" permission bit in a file?
What is $1 in shell scripting?
What is shell scripting used for?
Why are shell scripts used?
Which shell is the best?
What is a shell in operating system?
Which is better perl or shell scripting?
In shell scripting if text is surrounded by single quotes what does it denotes?