Skip to main content

Posts

Showing posts from June, 2022

DevNet notes - Linux - Bash (2)

grep basics grep is a command line tool for searching plain text to match a regular expression grep use examples: #grep 'import' test_requests.py - will display line in the file that contains word 'import' output:      f rom turtle import title      import requests      from bs4 import BeautifulSoup #grep -R 'import' . - will look for all files within the directory and subdirectories that contain word 'import ' output:      ./test_urllib:import urllib3      ./xml2-to-dict.py:import xmltodict      ./xml-to-dict.py:import xmltodict      ./eveng-request.py:import requests      ./parse_yaml.py:import yaml      ./test_requests.py:from turtle import title      ./test_requests.py:import requests      ./test_requests.py:from bs4 import BeautifulSoup      ./automate-l1.py:from __future__ import print_fun...