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 a program shell?
I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?
What does $@ mean bash?
What are the four fundamental components of every file system on linux?
How will you connect to a database server from linux?
What is shift command in shell script?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
What is the syntax of "nested if statement" in shell scripting?
What is egrep?
what is "umask"?
How are shells born?
what is tickets $ what low,medium,high priorite pls define time also