def shell_grep
      raise StandardError.new("Grep not found at: #{NOBSPW.configuration.grep_path}") \
        if !File.exist?(NOBSPW.configuration.grep_path)

      output = Open3.popen3(STDIN_GREP_COMMAND.join(" "), out: '/dev/null') { |stdin, stdout, stderr, wait_thr|
        stdin.puts "^#{escaped_password}$"
        stdin.close
        wait_thr.value
      }
      output.success?
    end
def shell_grep
      raise StandardError.new("Grep not found at: #{NOBSPW.configuration.grep_path}") \
        if !File.exist?(NOBSPW.configuration.grep_path)

      output = Open3.popen3(STDIN_GREP_COMMAND.join(" "), out: '/dev/null') { |stdin, stdout, stderr, wait_thr|
        stdin.puts "^#{escaped_password}$"
        stdin.close
        wait_thr.value
      }
      output.success?
    end
Helper methods