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 » sed

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)
  • awk (69)
  • x 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 Carry Out Multiple Substitutions in a File Using a Single sed Command

>> Character Notations and Removing Whitespace While Keeping Line Endings

>> 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

>> sed Print to Standard Output When Editing In-place

>> Guide to Using sed to Remove Multi-Line Text Blocks

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

>> Finding Duplicate Files With the Same Name

>> How to Find the “n” Most Frequent Words in a File

>> 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

>> How to grep Without Leading Whitespaces

>> Replacing Specific Line With a String Variable in Shell

>> Returning Filenames Without Extension Using find

>> Find Statistics on File Types Recursively in a Directory

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

>> How to Count Words in a File

>> How to Replace the Nth Occurrence of a String Using sed

>> Convert Tab-Delimited File to CSV

>> Quickly Clear the Contents of a File in Linux

>> Find Matching Text and Replace the Next Line

>> 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

>> Renaming All Folders and Files to Lowercase in Linux

>> Convert Symlink to Regular File on Linux

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

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

>> Insert a Line With Spaces Using sed

>> Get the Last Word From Each Line

>> Removing the Last Character of a File

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

>> Working With Large Files in Linux

>> 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

>> Move All Files Except One

>> 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

>> sed Substitution With Variables

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

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

>> Splitting a File at Given Line Numbers

>> How to Insert a Line at Specific Line Number

>> Remove Line Endings From a File

>> Recursive Search and Replace in Text Files

>> Using sed to Replace a Multi-Line String

>> Linux Commands – Remove All Text After X

>> Read Random Line From a File in Linux

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

>> How to Reverse the Order of Lines in a File in Linux

>> Remove Blank Lines From a File

>> How to Find and Replace Text in a File

  • ↑ 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