Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Search string in mutliple .gz files
Post: RE: Search string in mutliple .gz files

(Aug-25-2021, 08:47 AM)DeaD_EyE Wrote: (Aug-25-2021, 04:18 AM)ndc85430 Wrote: What's the reason for reimplementing zgrep? Reimplementing it in Python is better like this: import subprocess def ...
SARAOOF General Coding Help 10 6,940 Aug-26-2021, 01:47 PM
    Thread: Search string in mutliple .gz files
Post: RE: Search string in mutliple .gz files

(Aug-18-2021, 02:35 PM)DeaD_EyE Wrote: It looks like an ancient example for Python 2, which is really out of date. Here is a working example with some Python magic: #!/usr/bin/env python3 # You sh...
SARAOOF General Coding Help 10 6,940 Aug-24-2021, 01:57 PM
    Thread: Search string in mutliple .gz files
Post: RE: Search string in mutliple .gz files

(Aug-18-2021, 11:26 AM)Larz60+ Wrote: The error is clear. You need to fix indentation. (I did not try to run following so there may be additional errors): import glob import gzip matched_lines = ...
SARAOOF General Coding Help 10 6,940 Aug-18-2021, 01:37 PM
    Thread: Search string in mutliple .gz files
Post: Search string in mutliple .gz files

Hi, Kindly your support to provide python script to search given strings (Number, Text etc.) from multiple ".gz" text files Directory contains multiple".gz" files date wise Output:/bkup/TC/XYZ/202108...
SARAOOF General Coding Help 10 6,940 Aug-18-2021, 11:07 AM

User Panel Messages

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