The Baeldung logo
  • The Baeldung LogoLinux Sublogo
  • Start Here
  • Write for Baeldung
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • About Baeldung

      About Baeldung.

Files » grep

Files are the basic building block for everything in Linux. Learn about some basics of working with files including viewing, searching, and editing.

  • find (61)
  • awk (60)
  • sed (52)
  • x grep (43)
  • vim (33)
  • ls (24)
  • cat (22)
  • rsync (19)
  • file (14)
  • vi (14)
  • head (12)
  • tr (12)
  • tar (11)
  • echo (11)
  • tail (11)
  • bash (10)
  • mv (10)
  • chmod (10)
  • diff (10)
  • sort (10)
  • xargs (10)
  • cp (9)
  • rm (9)
  • tree (9)
  • ffmpeg (8)
  • readlink (7)
  • touch (7)
  • perl (7)
  • less (7)
  • wc (7)
  • cut (7)
  • copy-edit (7)
  • tee (6)
  • stat (5)
  • gzip (5)
  • rename (5)
  • comm (5)
  • printf (5)
  • uniq (5)
  • paste (5)
  • chown (4)
  • pdf (4)
  • du (4)
  • unzip (4)
  • lsof (4)
  • Docker (4)
  • truncate (4)
  • mkdir (4)
  • reference (4)
  • curl (3)
  • scp (3)
  • ln (3)
  • basename (3)
  • Shell (3)
  • Globbing (3)
  • realpath (3)
  • convert (3)
  • xml (3)
  • xmllint (3)
  • split (3)
  • dd (3)
  • ImageMagick (3)

>> How to Find Lines Exceeding a Certain Length in a File

>> Finding Strings From Binary Files in Linux

>> Finding Unique Text Between Two Files

>> Show Surrounding Lines Using Grep Command in Linux

>> How to Find Files by the Length of the Filename

>> Limiting the Output of grep

>> How to Find All Files Containing a Specific Text Pattern

>> How to grep Without Leading Whitespaces

>> Guide to Removing Trailing Newline From grep Output

>> Exclusion of a Specific Directory While Using ls Command

>> Matching Multiple Strings Using Only One grep

>> Use grep to Show Only Filenames on Linux

>> Count Occurrences of Character per Line/Field on Linux

>> Using grep While Excluding Binary Files

>> How to Extract IPv4 Addresses from Files in Linux

>> How to grep Hidden Files and Directories

>> Extract Duration From Video File in Linux

>> Using grep After a Specified Line Number

>> Why Is \d Not Supported by grep’s Regex

>> Search Contents of Multiple PDF Files

>> Concatenate Files With a Separator

>> Use grep to Find Content in Files and Move Matched Files

>> grep in a tar.gz Archive

>> How to Write Stdout to a File with Colors

>> How to Find Non-ASCII Characters in Text Files in Linux

>> Search for a Multi-Line Pattern in a File in Linux

>> Show Only the N-th Line After the Match

>> Working With Large Files in Linux

>> How To Find Only Text Files in a Directory in Linux

>> Escape Double Quote In Grep

>> Get the Last Directory or Filename From a File Path

>> Move All Files Except One

>> Count Occurrences of a Char in a Text File in Linux

>> Exclude Directories With grep

>> Using grep on Files That Match Specific Criteria

>> Find and Convert Files Ending With CRLF

>> How to Remove the Lines Which Appear in File B From Another File A in Linux

>> Search Within Specific File Types Using grep

>> Recursive Search and Replace in Text Files

>> How to Print the Longest Line(s) in a File

>> Delete Lines in a Text File That Contain a Specific String

>> Remove Blank Lines From a File

>> Common Linux Text Search

  • ↑ Back to Top
The Baeldung logo

Categories

  • Administration
  • Files
  • Filesystems
  • Installation
  • Networking
  • Processes
  • Scripting
  • Search
  • Security
  • Web

Series

  • Linux Administration
  • Linux Files
  • Linux Processes

About

  • About Baeldung
  • The Full Archive
  • Write for Baeldung
  • Editors
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo