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 the difference between a variable and value?
What is the use of "test" command?
Write a shell script to get current date, time, user name and current working directory.
Is powershell a bash?
Write a shell program to test whether a given number is even or odd?
How to find duplicate record in file using shell script?
0 Answers IBM, Saama Tech, Wipro,
how did u debugging in unix/ linux platform ??( project Related)
The information of the two files should be redirect to Third file in such a way that, the third file contain the information like this. 1st line in third file should be from 1st file 2nd line in Third file should be from 2nd file 3rd line in Third file should be from 1st file 4th line in Third file should be from 2nd file - - so on
What is the first line of a shell script called?
What is the need of including script interpreter in your shell script?
What is the default ubuntu terminal?
I have 2 files and I want to print the records which are common to both.