Skip to content
  • Home
  • About Us
  • Contact Us
  • Privacy Policy
  • Linux Download
    • CentOS Stream 9
    • Debian Linux
      • Debian 11
    • RHEL Linux
      • RHEL 9.0
      • RHEL 8.5
    • Rocky Linux
    • AlmaLinux
      • AlmaLinux 9.0
      • AlmaLinux 8.5
    • Kali Linux
    • Manjaro Linux
    • Ubuntu Linux
      • Ubuntu 22.04
  • Linux Virtualization
    • VirtualBox
    • Vagrant
  • We are Hiring!
Linux Shell Tips – The Best Linux Command Line Web Portal

sed command examples

How to Find and Replace Text, Word, or String in File

Leave a comment

If you manage to take a deeper glimpse inside the ecosystem of the Linux operating system environment, you will discover that its built-in commands are sufficient enough to solve most of our computing problems. One

How to Delete Empty Lines in Files Using Grep, Sed, and Awk

1 Comment

An experienced Linux user knows exactly what kind of a nuisance blank lines can be in a processable file. These empty/blank lines not only get in the way of correctly processing such files but also

5 Ways to Count the Number of Lines in a File

1 Comment

On Linux, you can do a single task in several ways. Likewise, if you want to count the number of lines in single or multiple files, you can use different commands. In this article, I’ll

How to Remove Lines from a File Using Sed Command

Leave a comment

streaming editor (sed) is an important tool when you work with parsing and transforming text in your nix-based systems. It is used for finding, filtering, text substitution, and text manipulations such as insertion, deletion, replace,

How to Use Sed to Find and Replace String in Files

Leave a comment

Sed (short for Stream Editor) is a command-line utility in GNU/Linux operating systems used to modify text files. It can be considered as a command-line text editor; however, it is different from ‘real-time’ text editors

How to Add Text to the Beginning of File in Linux

5 Comments

Linux command line users are familiar with the concept of redirection operators, which can write output to a file, or read input from a file. The operator ‘>’ writes output to a new file, or

How to Join Two Text Files in Linux

Leave a comment

To join two or more text files on the Linux command-line, you can use the cat command. The cat (short for “concatenate”) command is one of the most commonly used commands in Linux as well

How to Filter Log File Entries Based on Date Range

Leave a comment

If you are facing difficulty while systematically reading log files in Linux. Then you are in the right place. Simply doing cat to read a log file is a kinda basic way to inspect a

Join Linux Shell Tips

Join LinuxShellTips Follow LinuxShellTips on Twitter Follow LinuxShellTips on Reddit Follow LinuxShellTips on Linkedin Follow LinuxShellTips on Instagram Follow LinuxShellTips via RSS Feed Join LinuxShellTips Telegram Channel Follow LinuxShellTips on Tumblr

Buy Me A Coffee

VirtualBox Getting Started Guide

Linux Command Line Tips

How to Find What IP Addresses are Connected to Linux

How to Set or Change Hostname in Linux

How to Filter Log File Entries Based on Date Range

How to Install and Use Ack Command in Linux with Examples

How to Get Filename from the Full Path in Linux

Exa – A Modern Replacement for ls Command

How to Download Files with Curl Command in Linux

5 Ways to Count the Number of Lines in a File

How to Pass Password to SCP Command in Linux

BusyBox: The Swiss Army Knife of Embedded Linux

Linux Commands

Linux Tips

Linux Tools

Linux Shell Tips © 2022. All Rights Reserved.

The material in this site cannot be republished either online or offline, without our permission.

Hosting Sponsored by : Linode Cloud Hosting

Scroll back to top