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 to search for vowels a,e,i,o,u appearing in the same sequence in a file

4 Answers   Amazon,


What is the first line of a shell script called?

0 Answers  


How do I edit a .sh file?

0 Answers  


write a shell script to identify the given string is palindrome or not?

17 Answers   CTS, HP, IBM, InfoEst, Wipro,


What are the different shells available?

3 Answers  






What can you do with powershell?

0 Answers  


How to make userdefined variables to available for all other shells?

4 Answers  


What are environment variables?

2 Answers  


When you login to a c shell, which script would be run first?

2 Answers  


What is eval in shell script?

0 Answers  


What is difference between bash and shell?

0 Answers  


What are the disadvantages of shell scripting?

0 Answers  


Categories