A file has multiple records each having three 30-bit long
fields(field1,field2,field3).There is also a lookup
file,LOOK_UP.dat.Now, we need to consider only the
last ten digits of field1 and lookup the file LOOK_UP.dat.
If there a match then field2 and field3 should replaced
with corresponding data from the lookup file. otherwise
that particular record,for which there is no match, should
be stored in a seperate file.

Answers were Sorted based on User's Feedback



A file has multiple records each having three 30-bit long fields(field1,field2,field3).There is al..

Answer / tazz

If we would knew the structure of LOOK_UP.dat (like the
structure of file is mentioned) then the script could be
more precisely written.

Is This Answer Correct ?    1 Yes 0 No

A file has multiple records each having three 30-bit long fields(field1,field2,field3).There is al..

Answer / tazz

If we would knew the structure of LOOK_UP.dat (like the
structure of file is mentioned) then the script could be
more precisely written.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Shell Script Interview Questions

how did u debugging in unix/ linux platform ??( project Related)

2 Answers   Symphony,


How to get the first line from a file using just the terminal?

0 Answers  


Write a shell script to looking at the log file to see if the test has passed or not

2 Answers   TCS,


How do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh". Appreciate your inputs.Thanks.

5 Answers   Wells Fargo,


How Connect to a Database in Shell Programming?

4 Answers   Syntel,






give me some website where i can get unix and testing meterials

1 Answers  


write a program to display all the files from the current directory which are created in particular month

6 Answers  


How do I run a script on mac?

0 Answers  


how to separate the even and odd number generated from one file to two separate file i.e. even numbers in file1.txt and odd numbers in file2.txt

4 Answers   Infosys,


Tell something about the super block in shell scripting?

0 Answers  


What are the different types of shell scripting?

0 Answers  


i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..

0 Answers   Tech Mahindra,


Categories