Nico💙forNico tales💙angel.hashnode.net·Apr 4, 2023SHORT SED introsed -i 's/sadness/happiness/g' sedfile Getting there ... ✊ ✊ Me: What did you teach me about sed yesterday? GPT: Yesterday, I taught you about the sed command, which is a powerful text editor that can perform find and replace operations on text file...Discuss·1 like·56 readssed
Andrej Bartkoforbartkobartko.hashnode.net·Dec 13, 2022Efficiently Finding and Replacing Text in Multiple Files Using ripgrep and sedcommand rg "some string" | xargs -d "\n" sed -i "s/some string/another string/g" The command searches for the specified string using ripgrep and pipes the results to xargs, which executes the sed command on each line returned by ripgrep. The sed com...DiscussRipgrep
Plamen IvanovforLinux from A to Zk1lgor.hashnode.net·Jan 28, 2023Mastering the sed Command: Tips, Tricks, and Examples for Text Transformation in LinuxIntroduction The sed command, short for "stream editor", is a powerful tool in Linux that allows you to perform fundamental text transformations on an input stream, such as a file or input from a pipeline. This blog post will explore some of the most...Discuss·41 readsLinux
Nico💙forNico tales💙angel.hashnode.net·Apr 4, 2023SHORT SED introsed -i 's/sadness/happiness/g' sedfile Getting there ... ✊ ✊ Me: What did you teach me about sed yesterday? GPT: Yesterday, I taught you about the sed command, which is a powerful text editor that can perform find and replace operations on text file...Discuss·1 like·56 readssed
Charles Draniforcdranicdrani.hashnode.net·Feb 25, 2023Linux String Substition (sed)Sed is a computer program that is used to make changes to text files. It reads the file line by line and performs operations on each line, such as finding and replacing text, deleting lines that match a certain pattern, or adding or removing text fro...Discuss·44 readsKode Kloud Taskssed
Plamen IvanovforLinux from A to Zk1lgor.hashnode.net·Jan 28, 2023Mastering the sed Command: Tips, Tricks, and Examples for Text Transformation in LinuxIntroduction The sed command, short for "stream editor", is a powerful tool in Linux that allows you to perform fundamental text transformations on an input stream, such as a file or input from a pipeline. This blog post will explore some of the most...Discuss·41 readsLinux
Erkan GüzelerforErkan Guzeler's Blogcoderkan.hashnode.net·Jan 11, 2023Adding Text to First and Last Line of File in LinuxHi everyone, Let’s assume that you have many files to that you wanted to add some text to the first line or end line. If you are a Linux user, this is easy to do. I am using sed and tee commands to add something to the file. Firstly, I would like to...Discuss·69 readstee
Andrej Bartkoforbartkobartko.hashnode.net·Dec 13, 2022Efficiently Finding and Replacing Text in Multiple Files Using ripgrep and sedcommand rg "some string" | xargs -d "\n" sed -i "s/some string/another string/g" The command searches for the specified string using ripgrep and pipes the results to xargs, which executes the sed command on each line returned by ripgrep. The sed com...DiscussRipgrep