Showing posts with label sed. Show all posts
Showing posts with label sed. Show all posts


This article is a long compilation of our six series of GNU sed command line examples. This article contains more than 60 command lines divided in 6 part. This is intended for those who want to practice, hence this article contains no explanation for every example. We hope this helps you to learn GNU sed easier.


This is a short compilation of 6 bulk processing command line examples from 6 of our previous articles about bulk images converting, resizing, reducing (file size), rotating, and flipping. Here we mention only the title and the command lines, without the explanations (but we give a link to the corresponding article), for every action of processing below. For those don't know, the command lines here are basically just bash looping commands combined with ImageMagick's convert command lines.

 

If the previous post talked about converting, this post gives examples about resizing. ImageMagick has a -resize option to help you resizing images by percentage value. Combining ImageMagick's convert -resize command with bash looping resulting in bulk resizing.


This short tutorial shows how to convert multiple files from PNG to JPEG format (and vice versa) using ImageMagick command lines and bash looping. Including explanation to make it easier to understand. This is much more easier than doing it manually one by one.


This episode begins to emphasize some basic regex and POSIX character classes examples. We give a simple table of POSIX character classes here so you will practice them easier for this episode. Both of them will make every GNU sed job much more easier. This is the sixth episode, so if you don't want to miss anything, we recommend you to read the first until the fifth episodes. Happy practicing!



This is the fifth episode of our GNU sed command examples series. This episode contains another 10 command examples covering things such as deleting source code's comments, converting image files (along with ImageMagick tool), and inserting a single or multiple lines to a file. For you just started, we recommend you to read the first until the fourth episode before this one.

This article is a more 10 examples continuation from the Episode 3 of our GNU sed command lines the series. This article covers how to combine sed with bash looping with delay time and sed line printings in general. This covers some examples about how to count line numbers, printing the first/last line, in single and multiple files. This article mixes some of the previous examples so if you miss something here we suggest you to read them first.

Previously, we provided the first and second articles about GNU sed command line examples. Now it is the third article covering combination between sed and bash to do daily life jobs. We begin to focus in daily life jobs in this episode. This episode is a continuation of our previous articles. So if you miss something here, we suggest you to read the two previous episodes.


Previously we have written the first 10 GNU sed command examples. But surely, sed is very large, we may find more new commands soon. This article covers another 10 GNU sed commands around replacing (‘s’ command) and deleting (‘d’ command). So, this article is a continuation of our previous GNU sed commands article. If you are just starting with sed, we suggest you to read the previous article first.


GNU sed (stream editor) is a clone of UNIX sed command line program from GNU operating system. GNU sed is almost always included in every GNU/Linux distribution (e.g. Ubuntu). While the most of computer users edit a text file only with a real time text editor like Notepad, UNIX family users can edit a text file by a stream editor like sed. This article gives you the examples of stream editing for text file(s) with GNU sed. Because of it is GNU sed it is universal, so if you don't use Ubuntu (but at least you use any GNU/Linux distro), you can practice all of these command lines correctly. If you use another family of sed (e.g. UNIX or BSD one), probably you will need to adapt some commands because they have some differences.