Unix iTOps Tube

Wednesday, May 2, 2012

Search and delete

A file(example viv.txt) contains a n number of rows like


Code:


1,2,3,4,5,6,7,8

11,22,33,44,55,66,77,88

1,3,9,7,8,5,2,6,4


Requirement:

If number "5" exist in the sixth position then it should delete the whole line.like this it should check for all rows in a file(viv.txt)

.



please help on this.




No comments:

Post a Comment