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

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

    • About Baeldung

      About Baeldung.

Files » awk

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

  • find (72)
  • x awk (70)
  • sed (63)
  • grep (53)
  • vim (37)
  • ls (28)
  • cat (26)
  • rsync (20)
  • vi (18)
  • tar (16)
  • tr (15)
  • file (15)
  • xargs (13)
  • cp (13)
  • head (13)
  • sort (12)
  • mv (11)
  • bash (11)
  • chmod (11)
  • diff (11)
  • echo (11)
  • tail (11)
  • perl (10)
  • ffmpeg (10)
  • rm (10)
  • pdf (9)
  • cut (9)
  • gzip (9)
  • tree (9)
  • wc (8)
  • less (8)
  • printf (7)
  • readlink (7)
  • touch (7)
  • copy-edit (7)
  • stat (6)
  • uniq (6)
  • tee (6)
  • du (5)
  • ln (5)
  • rename (5)
  • comm (5)
  • paste (5)
  • ImageMagick (4)
  • regex (4)
  • Shell (4)
  • symlink (4)
  • dd (4)
  • chown (4)
  • unzip (4)
  • lsof (4)
  • Docker (4)
  • truncate (4)
  • mkdir (4)
  • reference (4)
  • install (3)
  • mount (3)
  • Python (3)
  • systemd (3)
  • more (3)
  • apt (3)
  • 7z (3)
  • curl (3)
  • scp (3)
  • basename (3)
  • Globbing (3)
  • realpath (3)
  • convert (3)
  • XML (3)
  • xmllint (3)
  • split (3)

>> How to Extract Filename From a Path via AWK

>> Character Notations and Removing Whitespace While Keeping Line Endings

>> Use of BEGIN and END Rules in Awk

>> How to Replace a Character in a Matched Line In-Place

>> How to Remove Lines That Contain Fewer Than n Characters

>> How to cat the Contents of Files Found Using find Into a Single File

>> Conversion of CSV to TSV in Linux

>> Extract Text Between Two Specific Characters in the Command Line

>> Using Awk With a Compressed File

>> Finding Duplicate Files With the Same Name

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

>> How to Get Octal File Permissions From the Command Line

>> Appending Text to a File Without Using I/O Redirection

>> Finding Unique Text Between Two Files

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

>> Breadth-First Search in a Directory

>> How to grep Without Leading Whitespaces

>> Guide to Removing Trailing Newline From grep Output

>> Replacing Specific Line With a String Variable in Shell

>> Matching Multiple Strings Using Only One grep

>> Returning Filenames Without Extension Using find

>> How to Sum Up the Size of Files Listed

>> How to Split a Text File Based on a Regular Expression

>> Find Statistics on File Types Recursively in a Directory

>> Command-Line Tools for Printing a Blank Line Between Lines of a Text File

>> Merging .csv Files in Linux

>> Remove Duplicate Lines from a File Without Sorting

>> Adding a Column of Values in a Tab Delimited File in Linux

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

>> Convert Tab-Delimited File to CSV

>> How to Extract IPv4 Addresses from Files in Linux

>> Add Leading Zeros to File Names

>> Find Matching Text and Replace the Next Line

>> Difference Between awk, nawk, gawk and mawk

>> Using grep After a Specified Line Number

>> How to Specify More Spaces as the Delimiter Using cut

>> Concatenate Files With a Separator

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

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

>> How to Add a String After Each Line in a File in Linux

>> Get the Last Word From Each Line

>> Removing the Last Character of a File

>> Merge Two Files Line By Line in Linux

>> Insert Multiple Lines Into a File After a Specified Pattern

>> Split a File With the Header Line

>> Remove All Whitespace Characters From a Text File

>> Display the First “n” Characters of a File in Linux

>> Linux: Delete Files Listed in a File

>> Delete All Lines in a File Starting From a Specific Line

>> Replace String in a Large One Line, Text File in Linux

>> Read a Specific Line From a File in Linux

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

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

>> Count Lines in a File in Bash

>> Remove the Last Character From Each Line in Linux

>> File Editing: Appending a Non-Existent Line to a File

>> Find and Convert Files Ending With CRLF

>> Remove the First Line of a Text File in Linux

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

>> Remove the Last N Lines of a File in Linux

>> Splitting a File at Given Line Numbers

>> Remove Line Endings From a File

>> Count Duplicated Lines in a Text File

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

>> Read Random Line From a File in Linux

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

>> Remove Blank Lines From a File

>> Process Multiple Input Files Using Awk

>> How to Find and Replace Text in a File

>> Renaming Linux Files in Batches

  • ↑ 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
  • Editors
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo