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
  python one line file processing har 4 208 4 hours ago
Last Post: har
  Print string in a single line RavCOder 8 186 Nov-08-2019, 09:45 AM
Last Post: perfringo
  How to read text file line by line SriRajesh 1 103 Nov-05-2019, 01:51 PM
Last Post: snippsat
  How can i judge 1st string position is correct number christing 3 169 Oct-30-2019, 03:32 AM
Last Post: newbieAuggie2019
  Search for the line number corresponding to a value Lali 0 98 Oct-22-2019, 08:56 AM
Last Post: Lali
  insert value to specific line in CSV file asheru93 1 162 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 202 Oct-17-2019, 03:04 PM
Last Post: baquerik
  Read each line, replace string and save into a new file igormonteiro 2 268 Sep-15-2019, 01:24 PM
Last Post: buran
  Finding a specific line in a file Vqlk 3 252 Sep-07-2019, 08:20 PM
Last Post: Axel_Erfurt
  String + Number from List BollerwagenIng 5 258 Aug-25-2019, 07:47 PM
Last Post: perfringo

Forum Jump:


Users browsing this thread: 1 Guest(s)