5
rated 0 times
[
5]
[
0]
/ answers: 1 / hits: 2534
/ 3 Years ago, sat, june 5, 2021, 9:17:03
I have file.csv that looks like this
4,6,18,23,26
5,12,19,29,31
2,5,13,16,30
9,10,24,27,32
4,5,10,19,22
4,6,8,10,25
2,3,4,25,11
I want to find some patterns and save them in another log file file.log
and remove them from the first file. Perl or grep ideally
- for instance, if x+1 = x2, in range of 3, remove the row and log its existence in another file and where it existed. So then
2,4,5,25,11
will be removed fromfile.csv
and infile.log
I would find something likerow 7: 2,3,4,25,11 was removed from file.csv
. I'm trying to find sequences
More From » grep