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 egrep?
How do I run a .sh file on mac?
What is an sh file?
How to print all the arguments provided to the script?
what is the difference between cmp and diff commands
How do I read a .sh file?
How would you compare the strings in a shell script?
Write a script to print the first 10 elements of fibonacci series.
what is info area how many types?
What is the first line in every perl script called?
why did you apply to shell
How do scripts work?