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

Browsing Tag

shell

37 posts

rmdir directory not empty in windows & Linux – Code Example

  • Akash Mittal
  • August 30, 2022
rmdir command is used to remove directories in windows and linux systems but only if they are empty. If the directories are non-empty then you will get the error rmdir…
View Post

How to create progress bar using bash script – Code Example

  • Akash Mittal
  • August 30, 2022
In this bash script code article you will see how to create a progress bar. This is a fine example to show download progress, loaders, waiting etc. This function accepts…
View Post

Convert hex color to RGB & RGB to hex using bash script – Code Example

  • Akash Mittal
  • September 5, 2022
In this article we will provide you code examples to convert hex color to RGB and RGB to hex using bash script. The code will work for both with or…
View Post

Create nameref for accessing variable from another bash – Code Example

  • Akash Mittal
  • September 5, 2022
In this article we will show you a bash script code for creating nameref for accessing a variable from another variable. This is very useful as it creates a dynamic…
View Post

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

Posts navigation

1 2 Next

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