2,474 views
1 1 vote

The contents of the text file t1 txt containing four lines are as follows :
a1        b1
a2        b2
a3        b2
a4        b1
The contents of the text file t2 txt containing five lines are as follows :
a1        c1
a2        c2
a3        c3
a4        c3
a5        c4
Consider the following Bourne shell script :

awk - F '  '  ' {Print $1, $2} ' t1.txt |
while read a b ; do
            awk -v aV = $ a - v by = $b  - F ' '
            aV = = $1 (print aV, bV, $2 ) ' t2.txt
done

Which one of the following strings will NOT be present in the output generated when the above script in run? (Note that the given strings may be substrings of a printed line.)

  1. "b1 c1"
  2. "b2 c3"
  3. "b1 c2"
  4. "b1 c3"

1 Answer

Answer:
Position:
Show:

Related questions

7 7 votes
2 2 answers
4.8k
4.8k views
Ishrat Jahan asked Nov 3, 2014
4,813 views
The shell commandfind -name passwd -printis executed in /etc directory of a computer system running Unix. Which of the following shell commands will give the same informa...
10 10 votes
2 answers 2 answers
6.2k
6.2k views
Ishrat Jahan asked Nov 3, 2014
6,164 views
A student wishes to create symbolic links in a computer system running Unix. Three text files named $ \text{file 1}", \text{file 2}"$ and $ \text{file 3}"$ exist in h...
1 1 vote
2 2 answers
3.9k
3.9k views
Ishrat Jahan asked Oct 30, 2014
3,886 views
Consider a token ring topology with N stations (numbered 1 to N) running token ring protocol where the stations are equally spaced. When a station gets the token it is al...
3 3 votes
2 answers 2 answers
5.3k
5.3k views
Ishrat Jahan asked Oct 30, 2014
5,262 views
Consider a token ring topology with N stations (numbered 1 to N) running token ring protocol where the stations are equally spaced. When a station gets the token it is al...