Search For Patterns Within Files With Grep

Search For Patterns Within Files With Grep

HomeOther ContentSearch For Patterns Within Files With Grep
ChannelPublish DateThumbnail & View CountActions
Channel AvatarPublish Date not found Thumbnail
0 Views
One of the most important command line utilities that every Linux user should know is Grep. Grep searches one or more input files for lines containing a match to a specified pattern. By default, Grep outputs the matching lines but it has a ton of flags and options available.

ERRATA:
I mentioned that Grep doesn’t like binaries. That’s not entirely true. There is a way to grep a binary as if it were a text file by using the /”-a/” flag. One thing to note though is many binaries are just one gigantic line so a lot of the time, all you are going to get is the equivalent of a /”cat binary-file/”.

REFERENCED:
► https://www.gnu.org/software/grep/ – GNU Grep

WANT TO SUPPORT THE CHANNEL?
Patreon: https://www.patreon.com/distrotube
Paypal: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=derek%40distrotube%2ecom&lc=US&item_name=DistroTube&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
️ Amazon: https://amzn.to/2RotFFi
Teespring: https://teespring.com/stores/distrotube

SOCIAL PLATFORMS:
️ Mastodon: https://mastodon.technology/@distrotube
IRC: irc://freenode #distrotube
Reddit: https://www.reddit.com/r/DistroTube/
️ LBRY: https://lbry.tv/$/invite/@DistroTube:2

DT ON THE WEB:
️ Website: http://distrotube.com/
️ Gopherhole: gopher://distro.tube
GitLab: https://gitlab.com/dwt1

FREE AND OPEN SOURCE SOFTWARE THAT I USE:
Brave Browser – https://brave.com/dis872
️ Open Broadcaster Software: https://obsproject.com/
Kdenlive: https://kdenlive.org
GIMP: https://www.gimp.org/
Audacity: https://www.audacityteam.org/
VirtualBox: https://www.virtualbox.org/

Your support is very much appreciated. Thanks, guys!

Please take the opportunity to connect and share this video with your friends and family if you find it useful.