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.

  • Category upFiles
  • Category upFile Editing
  • Category upScripting
  • Category upFile Searching
  • Category upFile Viewing
  • Category upSearch
  • Category upProcesses

Tag: sed

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

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

>> Print the Count of Lines Together With a Command’s Output

>> How to Prepend a Timestamp to the Output of a Command in Linux

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

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

>> How to Trim Whitespace From a Bash Variable

>> How to Read Log Files Between Two Dates

>> How to grep Without Leading Whitespaces

>> Replacing Specific Line With a String Variable in Shell

>> Returning Filenames Without Extension Using find

>> How to Process a Bash Variable With sed

>> 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 grep the ps Output With Headers

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

>> Inserting a Newline in a Variable in Bash

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

>> Replacing Whitespaces With Tabs in a File in Linux

>> Return Value of Substitutions With sed and awk

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

>> How to Add Up a Column of Numbers in Bash

>> Remove the Last Character From Each Line in Linux

>> Print Lines Between Two Patterns in Linux

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

>> Find and Convert Files Ending With CRLF

>> sed Substitution With Variables

>> Using sed With a Literal String Instead of an Input File

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

>> Check if a String Contains a Substring 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

>> Difference Between grep, sed, and awk

>> 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 the First Characters of a Line

>> Remove Blank Lines From a File

>> How to Join Multiple Lines Into One

>> Guide to the sed Stream Editor

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