Skip to content
#!/bin/bash

Tag: search

exponential search in bash

Posted on 2024-08-30 | by root

Exponential search is an algorithm designed to search for a target value in a sorted array. It is useful in scenarios when dealing with large or potentially infinite datasets and it can also help you find a number, which is not known in advance. Let’s see how it works and how to implement exponential search in bash.

Continue reading →
Posted in Tips and tricks, Tutorials | Tagged binary, exponential, search

Recent Posts

  • bash generates random fun
  • exponential search in bash
  • dealing with float numbers in bash
  • loops in Linux shell scripts
  • negate something in regex using negative lookahead
  • convert wildcard in file name into relevant static file name
  • check ownership and permissions for absolute path easily
  • retrieving country codes from IP automatically
  • check if json is valid
  • redirect both stdout and stderr to same place

Archives

  • January 2025
  • August 2024
  • June 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
© 2025 shscripts.com | contact me: IN