Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

delete records

How to delete n lines at top/bottom using jython which is saved in sample.txt sample1.txt

Sample.txt

1
2
3
4
5
6

Sample1.txt

9
10
13
12
2

Expected Output Sample.txt should contain

3
4
5

Sample1.txt should contain

13
12

delete records

How to delete n lines at top/bottom top=2 and bottom=1 using jython which is saved in sample.txt sample1.txt

Sample.txt

1
2
3
4
5
6

Sample1.txt

9
10
13
12
2

Expected Output Sample.txt should contain

3
4
5

Sample1.txt should contain

13
12

delete records

How to delete n lines at top=2 and bottom=1 using jython which is saved in sample.txt sample1.txt

Sample.txt

1
2
3
4
5
6

Sample1.txt

9
10
13
12
2

Expected Output Sample.txt should contain

3
4
5

Sample1.txt should contain

13
12

delete records

How to delete n lines at top=2 and bottom=1 using jython which is saved in sample.txt sample1.txt

Sample.txt

1
2
3
4
5
6

Sample1.txt

9
10
13
12
2

Expected Output Sample.txt should contain

3
4
5

Sample1.txt should contain

13
12

delete records

How to delete n lines at top=2 and bottom=1 using jython which is saved in sample.txt sample1.txt

Sample.txt

1
2
3
4
5
6

Sample1.txt

9
10
13
12
2

Expected Output Sample.txt should contain

3
4
5

Sample1.txt should contain

13
12

delete records

How to delete n lines at top=2 and bottom=1 using jython which is saved in sample.txt sample1.txt

Sample.txt

1
2
3
4
5
6
1,a
2,b
3,c
4,d
5,e
6,f

Sample1.txt

9
10
13
12
2
9,g
10,h
13,i
12,j
2,k

Expected Output Sample.txt should contain

3
4
5
3,c
4,d
5,e

Sample1.txt should contain

13
12
13,i
12,j