Here is the most useful command to get empty lines from a file using grep in Linux.
Here is a shell script to calculate the sum of input file records. And to replace a string with a new one using sed utility.
Here are the best examples of how to use sed utility to search and replace. These examples explain how to replace a string with your choice.
In Bash shell (or any other) you can include a script in another script. Here is best example of how you can do it. Also, I have explained the reasons of why you need it.
Here’s a simplified script to read all the elements of the array. You can do two things with this script. Those are appending and Counting.
Here’s a simple command that you can use to change shells. It’s useful to work with multiple shells at a time.
How to use file descriptors in Unix is explained in this post. Unix supports three types. Here is an example that shows how it works.
Here is a tricky shell script question. What happens if you give duplicate function names in the script.