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 filters explain sort with all the options available?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
What is shell terminal?
What is shell variable?
what is the difference between cmp and diff commands
What is awk in shell scripting?
How do we delete all blank lines in a file?
Is SSO and SSL support BOXI?
What is the command to find out today's date?
write a shell script that counts a number of unique word contained in the file and print them in alphabetical order line by line?
When you login to a c shell, which script would be run first?
How will you connect to a database server from linux?