Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 line number of first and second occurance of string in a file
#1
Hello,

Here is the logic I am trying to code.

* I have a line number of a certain string in a file. I want to get the line number of second occurrence of that string in a file.

Please help me to write the code.
Quote
#2
Help is to give assistance or support.

Write a code and there will be assistance or support. With no code nothing to give assistance or support to.
baquerik likes this post
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  update txt file but keep a specific line 3Pinter 1 93 Dec-09-2019, 05:48 PM
Last Post: Gribouillis
  python one line file processing har 4 235 Dec-09-2019, 06:10 AM
Last Post: har
  Print string in a single line RavCOder 8 193 Nov-08-2019, 09:45 AM
Last Post: perfringo
  How to read text file line by line SriRajesh 1 111 Nov-05-2019, 01:51 PM
Last Post: snippsat
  How can i judge 1st string position is correct number christing 3 177 Oct-30-2019, 03:32 AM
Last Post: newbieAuggie2019
  Search for the line number corresponding to a value Lali 0 105 Oct-22-2019, 08:56 AM
Last Post: Lali
  insert value to specific line in CSV file asheru93 1 168 Oct-21-2019, 03:37 PM
Last Post: Larz60+
  How do you replace a word after a match from a list of words in each line of a file? vijju56 1 212 Oct-17-2019, 03:04 PM
Last Post: baquerik
  Read each line, replace string and save into a new file igormonteiro 2 284 Sep-15-2019, 01:24 PM
Last Post: buran
  Finding a specific line in a file Vqlk 3 273 Sep-07-2019, 08:20 PM
Last Post: Axel_Erfurt

Forum Jump:


Users browsing this thread: 1 Guest(s)