User Tools

Site Tools


python_searching_a_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
python_searching_a_file [2017/02/02 09:29] luke7858python_searching_a_file [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 3: Line 3:
 with open("/etc/httpd/conf/httpd.conf", "r") as search_file: with open("/etc/httpd/conf/httpd.conf", "r") as search_file:
     for line in search_file:     for line in search_file:
-        if 'IncludeO' in line:+        if 'IncludeOptional' in line:
                 config_directory.append(line)                 config_directory.append(line)
                 print config_directory[0]                 print config_directory[0]
 </sxh> </sxh>
python_searching_a_file.1486027740.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki