python_searching_a_file
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
python_searching_a_file [2017/02/02 09:05] – created luke7858 | python_searching_a_file [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
<sxh bash> | <sxh bash> | ||
- | from sys import argv | + | config_directory=[] |
- | + | with open("/ | |
- | search_file = open("/ | + | for line in search_file: |
- | for line in search_file: | + | if 'IncludeOptional' |
- | if "IncludeOptional" | + | |
- | search_file.close() | + | print config_directory[0] |
</ | </ |
python_searching_a_file.1486026315.txt.gz · Last modified: 2024/05/23 07:26 (external edit)