Start Here
About
▼
▲
Full Archive
The high level overview of all the articles on the site.
About Baeldung
About Baeldung.
Files
Scripting
File Editing
File Searching
File Viewing
Search
Processes
Administration
Tag: sed
>> How to Loop Over Each Character in a Bash String
>> Converting UTF-8 to ASCII
>> How to Export Variables From a File
>> How to Read the First and the Last Line From Input
>> Wrap Quotes Around Each Line in a File or Variable
>> How to Redirect the Contents of a File to echo
>> How to Run Variable Content as a Command in Bash
>> Generating a List of Dates in a Range in Bash
>> How to Extract the Last
n
Characters of a String in Bash
>> Alternatives to the sed Command in Linux
>> How to Grep From the End of a File to the Beginning
>> How to Store Standard Error Messages in a Linux Variable
>> How to Replace Text After a Specific Word Using
sed
>> How to Append Text at the Beginning of a File in Linux
>> Bash One-Liners to Remove Characters From a Variable
>> How to Toggle Comments in a File From the CLI
>> How to Match a Pattern “N” Times Using sed
>> How to Repeat Each Line in a File Multiple Times in the Command Line
>> Printing Specified Lines From a File
>> Returning Only One Value Using ldapsearch
>> Replace the First n Matched Instances in a File
>> The Backslash and Removing Backslashes From a Text File or String
>> How to Output Comma-Separated Strings Using Bash Brace Expansion
>> How to Pass an Environment Variable in Kubernetes Deployment
>> Adding Field to a JSON Object
>> How to Carry Out Multiple Substitutions in a File Using a Single
sed
Command
>> How to Match a String with a Fixed Numbers of Characters in Linux
>> 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 Delete Text Before a Delimiter From the Command Line
>> How to cat the Contents of Files Found Using find Into a Single File
>> How to Embed a Shell Command Into a sed Expression
>> Conversion of CSV to TSV in Linux
>> sed Print to Standard Output When Editing In-place
>> Guide to Converting Timestamps in a Column to a Date
>> How to Convert a Date Format to Another Format
>> Zero Padding in the Shell
>> 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
>> 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