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
  Searching string in file and save next line dani8586 2 108 Jul-10-2020, 09:03 AM
Last Post: dani8586
  Finding line numbers starting with certain string Sutsro 3 221 Jun-27-2020, 12:36 PM
Last Post: Yoriz
  Get the record number of a dBASE dbf file DarkCoder2020 0 178 Jun-16-2020, 05:11 PM
Last Post: DarkCoder2020
  Ignore first few letters of a line when reading file. ShakeyPakey 16 518 May-30-2020, 02:17 PM
Last Post: BitPythoner
  Make an array of string number in a List polantas 5 225 May-27-2020, 07:18 AM
Last Post: buran
  Pyinstaller create this error :“File ”multiprocessing\connection.py“, line 691 Formationgrowthhacking 2 254 Apr-30-2020, 10:26 AM
Last Post: buran
  Delete all contents of a file from the fifth line? PythonNPC 1 241 Apr-18-2020, 09:16 AM
Last Post: buran
  Read a CSV file only from the 4th line/row asaforen7 8 512 Apr-16-2020, 01:49 AM
Last Post: Larz60+
  Deleting a line in a csv file julio2000 6 460 Feb-25-2020, 05:12 PM
Last Post: julio2000
  Python convert multi line into single line formatted string karthidec 2 831 Dec-23-2019, 12:46 PM
Last Post: karthidec

Forum Jump:


Users browsing this thread: 1 Guest(s)