Learn ReactJS & React Native With Me
  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact
  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact
  • Facebook
  • Twitter
  • LinkedIn
  • Email
Learn ReactJS & React Native With Me

Code, Bugs, Pitfalls, Tricks of React Js & React Native

  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact

Akash Mittal

579 posts
This is Akash Mittal, an overall computer scientist. He is in software development from more than 10 years and worked on technologies like ReactJS, React Native, Php, JS, Golang, Java, Android etc. Being a die hard animal lover is the only trait, he is proud of.

Get content between two substrings using bash script – Code Example

  • Akash Mittal
  • August 30, 2022
To get the content between two substrings, we will provide you a bash script code. You will need to provide a file from which you want to extract the content…
View Post

Count total files or directories using bash script – Code Example

  • Akash Mittal
  • August 30, 2022
In this article we will look at the bash script code which can count total files or directories inside any directory. This works by passing the output of the glob…
View Post

Read file line by line and store in array using bash script – Code Example

  • Akash Mittal
  • August 30, 2022
In this article we will provide you bash script code to read a file line by line and store it in array. This code can preserve empty lines or discard…
View Post

Read file content to a variable using bash script – Code Example

  • Akash Mittal
  • August 30, 2022
To read file content to a variable, we will provide you a bash script code. This code can handle binary data as well. It is an alternative to the cat…
View Post

How to loop over files and directories using bash script? – Code Example

  • Akash Mittal
  • August 30, 2022
To loop over files and directories, we will provide you bash script code. This code can fetch all files and folder, selected extension only, only files, only folders, and nested…
View Post

Loop over contents of file and read line by line in bash – Code Example

  • Akash Mittal
  • August 30, 2022
In this code example we will share a bash function to loop over contents of input file. It contains a while loop which reads the content line by line. Code…
View Post

How to loop over an array using bash script – Code Example

  • Akash Mittal
  • September 5, 2022
Get the code to loop over an array using bash script. We will provide 3 ways to loop over an array. You can fetch each element of array or use…
View Post

How to loop over a variable range of numbers in bash – Code Example

  • Akash Mittal
  • September 5, 2022
Get bash script code example to loop over a range of numbers. In this code you can provide any valid number to the variable. This loop works like for loops…
View Post

How to loop over a range of numbers in bash script? – Code Example

  • Akash Mittal
  • September 5, 2022
In this article you will get the code to loop over a range of numbers in bash script. This code will work for defined range. Variable support is not there.…
View Post

Toggle between two values using bash script – Code Example

  • Akash Mittal
  • September 5, 2022
Get bash script code to toggle between two values. This code is best suited for situations where you want to toggle the state of a switch from on/off. It can…
View Post

Get random element from array using bash script – Code Example

  • Akash Mittal
  • September 5, 2022
In this article we will show you a bash script code to get random element from an array. This function will select an element randomly and return. It doesn’t use…
View Post

Remove duplicate elements from array using bash script – Code Example

  • Akash Mittal
  • September 5, 2022
In this article we will provide you the bash script code to remove duplicate elements from array. In this approach, the order of list items may change. Code Example –…
View Post

Reverse an array using bash script – Code Example

  • Akash Mittal
  • September 5, 2022
In this article we will provide you bash script code to reverse an array. In this function you can provide an array or multiple arguments. Code Example – Inspired from…
View Post

Check if string or array ends with substring in bash script – Code Example

  • Akash Mittal
  • September 5, 2022
In this article we will provide you a bash script code with live demo to check if a substring is present at the end of a string or array. We…
View Post

Check if string starts with substring or not using bash – Code Example

  • Akash Mittal
  • September 5, 2022
In this article we will provide you bash script code example to check if substring is present at the start of the string. This code won’t check any other occurrences…
View Post

Check if substring is present in string or array using bash – Code Example

  • Akash Mittal
  • September 5, 2022
In this article I will provide you the bash script code to check if a substring is present in string or an array. This code works for both strings and…
View Post

urldecode using bash script with live demo – Code Example

  • Akash Mittal
  • September 5, 2022
In this article we will provide you the bash script code to urldecode. This code can decode the percent encoded string like decodeURIComponent() function in javascript. Code Example – Not…
View Post

urlencode using bash script with live demo – Code Example

  • Akash Mittal
  • September 5, 2022
In this article we will provide you bash script code to urlencode. This code will percent encode the string like `encodeURIComponent()` function in javascript. Code Example – Not only urls,…
View Post

Remove substring from end of string using bash script – Code Example

  • Akash Mittal
  • September 5, 2022
This article will provide you a bash script code to remove substring from end of string. This code will only remove the substring pattern if it appears at the very…
View Post

Remove substring if string starts with it using bash script – Code Example

  • Akash Mittal
  • September 5, 2022
Let’s see the bash script code example to remove substring from a string if that substring appears in the beginning of the string. It is different from first occurrence as…
View Post

Posts navigation

Previous 1 … 13 14 15 … 29 Next

Learn ReactJS & React Native With Me
Copyright AkashMittal.com | Privacy Policy