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
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 |
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 |
how did u debugging in unix/ linux platform ??( project Related)
How to get the first line from a file using just the terminal?
Write a shell script to looking at the log file to see if the test has passed or not
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.
How Connect to a Database in Shell Programming?
give me some website where i can get unix and testing meterials
write a program to display all the files from the current directory which are created in particular month
How do I run a script on mac?
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
Tell something about the super block in shell scripting?
What are the different types of shell scripting?
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..