Friday, 12 February 2016

DISPLAY MISSING NUMBER IN THE SEQUENCE

I have a sequence with fixed boundaries and there can be any number of misses in the sequence in a random fashion. I need to get those missed numbers.


INPUT:



OUTPUT:


DISPLAY THE MOST REPEATED NUMBER


I have a sequence of numbers repeated.I need to get the number which repeated maximum number of times.








Saturday, 6 February 2016

Display Bad records in a file

We have a delimited file and need to capture bad records other than the specific columns

In the below file,we have 4 columns separated by pipe '|' delimiter. 2nd row and 3 rd row are invalid here.

Zero byte file in Unix

Find zero byte file 



Find non-zero byte file