Gatsby is a true Jamstack framework. It works with React-powered components that consume APIs before optimizing and bundling everything to serve as static files with bits of reactivity. That… Read More
Sed ut perspiciatis unde. I was developing a web application for chatting with PDF files, capable of processing large documents, above 1000 pages. But before starting a conversation with the… Read More
Regular expressions, also known as regex, work by defining patterns that you can use to search for certain characters or words inside strings.Once you define the pattern you want to use, you… Read More
Basic Commands:
cd: Change directory
Example: cd Documents (Change to the “Documents” directory)
ls: List files and directories
Example: ls -l (List files and director… Read More
Using read Command
Use the read command with parameter expansion to split the string and get the last element in Bash.
#!/bin/bash
myString="Hello:World:How:are:you?"
read lastElement
The… Read More
Shell Scripting Interview Questions and Answers : Shell scripting is a powerful tool that can help automate tasks and increase productivity. A shell script is a program that is written… Read More
You will need to use sed or an editor that has better regex support. To also remove lines containing blank characters or white spaces, click Remove Empty Lines option instead. \xℕT… Read More
TL;DR
If you know extension of the file, you can use basename command and pass filename and extension as parameters to retrieve filename without extension in bash. This is useful when you h… Read More
SED command in UNIX stands for stream editor and it can perform lots of functions on file like searching, find and replace, insertion or deletion. Though most common use of SED command in UN… Read More
1. What is HTML and HTML5?
HTML, which stands for HyperText Markup Language, is a markup language used for structuring and formatting content on the web. It is used to create and structur… Read More
Here are a few suggestions and hints to automating report edits from the Linux command line.When I use the Linux command line, whether or not I'm writing a brand new software on my computer… Read More
Most of these features can only be used in 'HTML View' mode, nor can you switch to 'Writing view' mode while using some of these features. In post editor view, click icon at the bottom… Read More
In this post, we will see how to replace String in file using sed in linux.
Problem
How to find and replace “Text1” with “Text2” using sed command in linux.
Solution… Read More
Introduction to Bash Replace String
In Bash, there is a common technique or rather well-known technique known as string manipulation or many call it as string handling where many processes… Read More
Introduction to SED Command in Linux
The following article provides an outline for SED Command in Linux. SED as text manipulation tool that we use regularly and we think a lot of shell scri… Read More
Photo Credit: unsplash/golfarisa iTextSharp is an advanced .NET library that allows us to create pdf documents from our .NET applications. It provides functionalities to create… Read More
{Updated} How do I replace a string with another string in all files using sed, Bash or Perl?The post Bash Shell: Replace a String With Another String In All Files Using sed and Perl -pie Op… Read More
There’s a directory full of .dat files that I needed to change a string in. But there were hundreds of files nested in different folders in a directory, let’s just call it /var/f… Read More
What is the SED Command in Unix?
In these articles, we will learn about SED Command in Unix. SED is a powerful text editor command. It is used to do insertion, deletion, search and replace… Read More
Simple way to replace all occurences of a string in a file in nodejs
Problem
Currently i'm using sed from shelljs. However, it only replaces the first occurrence, and has to be rerun to rep… Read More
Last chapter we have discussed how we can share data between two unrelated components using behavioral subjects in Angular 8. Today I am going to explain how you can make an interaction betw… Read More
Introduction to Linux Regular Expression
The Linux regular expression, basically it is a sequence of characters or string that would define the searching pattern. These searching patterns a… Read More
How Should Designers Learn To Code? The Terminal And Text Editors (Part 1)How Should Designers Learn To Code? The Terminal And Text Editors (Part 1)… Read More
This cheat sheet covers the following topics: introduction to the shell, navigation, basic commands, environment variables, connectors, pipelines, input/output redirection, access rights, a… Read More
As part of the AWS Shared Responsibility Model, you are responsible for monitoring and managing your resources at the operating system and application level. When you monitor your applicatio… Read More