mirror of
https://github.com/eddyem/lectures.git
synced 2026-03-20 00:31:07 +03:00
add 3 lectures for SFedU
This commit is contained in:
7
Komp_obr_SFedU/Materials4Pract/01/ex1
Executable file
7
Komp_obr_SFedU/Materials4Pract/01/ex1
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: $0 LEN - get random number with length LEN"
|
||||
exit 1
|
||||
fi
|
||||
cat /dev/urandom | tr -dc '0-9' | fold -w $1 | head -n 1
|
||||
Reference in New Issue
Block a user