patches and low-level development discussion
 help / color / mirror / code / Atom feed
441ed64fe60e16cea6336e9ac5bb193e64ac9def blob 393 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
#!/bin/sh -eu
#
# SPDX-FileCopyrightText: 2021-2022 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2022 Unikie
# SPDX-License-Identifier: EUPL-1.2+

substr () {
    str=$1
    beg=$2
    end=$3
    echo "$str" | cut -c "$beg-$end"
}

u1=$(substr "$1" 1 8)
u2=$(substr "$1" 9 12)
u3=$(substr "$1" 13 16)
u4=$(substr "$1" 17 20)
u5=$(substr "$1" 21 32)
printf "%s\n" "$u1-$u2-$u3-$u4-$u5"
debug log:

solving 441ed64 ...
found 441ed64 in https://spectrum-os.org/git/spectrum

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).