Sign in
cos
/
mirrors
/
cros
/
chromiumos
/
overlays
/
eclass-overlay
/
cc0531ea4f99f906f60892a1411c2f4d4974fd44
/
.
/
profiles
/
base
/
accounts
/
find_new_uid.sh
blob: 8fd0f0a719e5af4ba89659bdd93a61f6c3fbb8df [
file
] [
log
] [
blame
]
#!/bin/bash
set
-
euo pipefail
files
=
"$(dirname $0)/user/*"
echo
-
n
"Your new UID is: "
awk
--
field
-
separator
:
'
BEGIN { max = 20099 }
/^uid:/ { if ($2 <= 29999 && $2 > max) max = $2 }
END { print max + 1}'
$files