Python Forum
find some word in text list file and a bit change to them
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
find some word in text list file and a bit change to them
#1
hi
I need to find some word in my text list file for example V_20220412 in
S1A_IW_SLC__1SDV_20220412T022912_20220412T022940_042734_05197D_3860

then i want to omit " _" so then , it is like this: V20220412
and then i want to get one day before this date : V20220411
after doing these steps for all rows in text list file ,I want to save them in another text file like this:
V20220411
V20220318
V20220222
V20220128
V20220105
Reply


Messages In This Thread
find some word in text list file and a bit change to them - by RolanRoll - Jun-26-2022, 12:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What does .flush do? How can I change this to write to the file? Pedroski55 3 408 Apr-22-2024, 01:15 PM
Last Post: snippsat
  Replace a text/word in docx file using Python Devan 4 4,198 Oct-17-2023, 06:03 PM
Last Post: Devan
  Find a specific keyword after another keyword and change the output sgtmcc 5 971 Oct-05-2023, 07:41 PM
Last Post: deanhystad
  Program to find Mode of a list PythonBoy 6 1,271 Sep-12-2023, 09:31 AM
Last Post: PythonBoy
  logging: change log file permission with RotatingFileHandler erg 0 1,199 Aug-09-2023, 01:24 PM
Last Post: erg
  FileNotFoundError: [WinError 2] The system cannot find the file specified NewBiee 2 1,748 Jul-31-2023, 11:42 AM
Last Post: deanhystad
  How can I change the uuid name of a file to his original file? MaddoxMB 2 1,076 Jul-17-2023, 10:15 PM
Last Post: Pedroski55
  Change font in a list or tuple apffal 4 2,811 Jun-16-2023, 02:55 AM
Last Post: schriftartenio
  find random numbers that are = to the first 2 number of a list. Frankduc 23 3,607 Apr-05-2023, 07:36 PM
Last Post: Frankduc
  Cannot find py credentials file standenman 5 1,788 Feb-25-2023, 08:30 PM
Last Post: Jeff900

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020