Compiler-Design
October 18, 2023
Nielit STA [02-12-2018]
October 18, 2023
Compiler-Design
October 18, 2023
Nielit STA [02-12-2018]
October 18, 2023

UNIX-Operating-System

Question 1

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 S1, S2} ' t1.txt |
while read a b ; do
            awk -v aV = Sa - v bV = Sb - F''
            'aV = = S1 (print aV, bV, S2 )'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”
Question 1 Explanation: 
Note: Out of syllabus.
Correct Answer: C
Question 1 Explanation: 
Note: Out of syllabus.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!