Author: Arpit Mandliya
- 26 September
Generate all subarrays of an array
If you want to practice data structure and algorithm programs, you can go through 100+ data structure and algorithm programs. In this post, we will see how to generate all subarrays of given array. Problem Print all print all subarrays of given array. For example: If array is {1,2,3} then you need to print {1}, […]
- 24 September
sed Replace String in File
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 Sed stands for stream editor.It reads the file and modifies the file as provided by list of sed command.By default, input is written on […]
- 24 September
Find file containing text in linux
In this post, we will see how to find files containing specific text. Problem You want to search for any specific text in all the files in a directory. Solution There are lots and lots of files on linux or unix server. You can find and locate a file using find command but it is […]
- 24 September
find file by name in linux
In this post, we will see how to find file by name in linux. You can use "find" command to find file by name. Find file in the current directory Here is a simple command to find file "letters.txt" in current directory. find . -name letters.txt $ find . -name letters.txt ./txtFiles/letters.txt If you want […]
- 24 September
vi show line numbers in linux
In this post, we will see how to show/hide line number in vi/vim text editor. Let’s say you are working on any shell script and you are debugging an issue. In this scenario, line number can help you to debug issue better. Here are the steps to show line numbers in vi/vim text editor. $ […]
- 24 September
awk substr example
In this post, we will see how to use awk substr to select substring. awk command has a lot of useful functions. One of them is awk substr function. awk substr function is useful to select substring from a string. Syntax awk(string,x,y) Where String is input string. x is starting position in string(index starts from […]
- 23 September
grep multiple Strings in linux
In this post, we will see how to grep multiple Strings in linux. Let’s say your application is deployed on linux machine and you need do analysis of log file and you need to find lines with the specific words in it. For example: you want to find all the lines with "WARNING" or "DEBUG" […]
- 17 September
Spring Boot SOAP Web service Example
In this post, we will see how to create soap web services with Spring boot. We will create contract first soap web service with Spring boot. We will focus on how to define configurations for soap web services. Tools used JDK 1.8, Eclipse, Maven Spring-boot – Underlying application framework wsdl4j – for publishing WSDL for our […]
- 18 August
Print all paths from top left to bottom right of MxN matrix
If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this post, we will see how to print all paths from top left to bottom right of MxN matrix. Problem We need to print all paths from top left to bottom right of MxN matrix. You can either […]