You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# grep command is used to filter the lines out of a file, and we can do this by having a variable named line (to represent the current line of some file), also the regular expression library 're' is imported. We will use this to filter out the name of the author of a book.
# Sample input : opening a text file: truthful-living.txt
# some lines of the book :
# Title: Beowulf
# An Anglo-Saxon Epic Poem, Translated From The Heyne-Socin Text