• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | Gate IT 2007 | Question 57

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 : C
 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.)

(A)

"b1 c1"

(B)

"b2 c3"

(C)

"b1 c2"

(D)

"b1 c3"

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments