From 3344cdf0010271c43279dd99a9df151017dc1fff Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 19 Jul 2019 12:08:45 -0400 Subject: initial commit --- arch | 1 + b2sum | 0 base32 | 0 base64 | 1 + basenc | 0 chcon | 0 chroot | 0 dircolors | 0 factor | 0 fmt | 0 hostid | 0 hostname | 0 install | 0 md5sum | 0 mknod | 0 mktemp | 0 nproc | 0 numfmt | 0 pinky | 0 pr | 0 printenv | 7 +++++++ ptx | 0 readlink | 0 realpath | 0 runcon | 0 seq | 30 ++++++++++++++++++++++++++++++ sha1sum | 0 sha224sum | 0 sha256sum | 0 sha384sum | 0 sha512sum | 0 shred | 0 shuf | 0 stat | 0 stdbuf | 0 sync | 0 tac | 0 timeout | 0 truncate | 0 uptime | 0 users | 0 vdir | 0 yes | 4 ++++ 43 files changed, 43 insertions(+) create mode 100755 arch create mode 100644 b2sum create mode 100644 base32 create mode 100755 base64 create mode 100644 basenc create mode 100644 chcon create mode 100644 chroot create mode 100644 dircolors create mode 100644 factor create mode 100644 fmt create mode 100644 hostid create mode 100644 hostname create mode 100644 install create mode 100644 md5sum create mode 100644 mknod create mode 100644 mktemp create mode 100644 nproc create mode 100644 numfmt create mode 100644 pinky create mode 100644 pr create mode 100755 printenv create mode 100644 ptx create mode 100644 readlink create mode 100644 realpath create mode 100644 runcon create mode 100755 seq create mode 100644 sha1sum create mode 100644 sha224sum create mode 100644 sha256sum create mode 100644 sha384sum create mode 100644 sha512sum create mode 100644 shred create mode 100644 shuf create mode 100644 stat create mode 100644 stdbuf create mode 100644 sync create mode 100644 tac create mode 100644 timeout create mode 100644 truncate create mode 100644 uptime create mode 100644 users create mode 100644 vdir create mode 100755 yes diff --git a/arch b/arch new file mode 100755 index 0000000..6ff1fb5 --- /dev/null +++ b/arch @@ -0,0 +1 @@ +exec uname -m diff --git a/b2sum b/b2sum new file mode 100644 index 0000000..e69de29 diff --git a/base32 b/base32 new file mode 100644 index 0000000..e69de29 diff --git a/base64 b/base64 new file mode 100755 index 0000000..60f09d2 --- /dev/null +++ b/base64 @@ -0,0 +1 @@ +exec uudecode -m "${1+$@}" diff --git a/basenc b/basenc new file mode 100644 index 0000000..e69de29 diff --git a/chcon b/chcon new file mode 100644 index 0000000..e69de29 diff --git a/chroot b/chroot new file mode 100644 index 0000000..e69de29 diff --git a/dircolors b/dircolors new file mode 100644 index 0000000..e69de29 diff --git a/factor b/factor new file mode 100644 index 0000000..e69de29 diff --git a/fmt b/fmt new file mode 100644 index 0000000..e69de29 diff --git a/hostid b/hostid new file mode 100644 index 0000000..e69de29 diff --git a/hostname b/hostname new file mode 100644 index 0000000..e69de29 diff --git a/install b/install new file mode 100644 index 0000000..e69de29 diff --git a/md5sum b/md5sum new file mode 100644 index 0000000..e69de29 diff --git a/mknod b/mknod new file mode 100644 index 0000000..e69de29 diff --git a/mktemp b/mktemp new file mode 100644 index 0000000..e69de29 diff --git a/nproc b/nproc new file mode 100644 index 0000000..e69de29 diff --git a/numfmt b/numfmt new file mode 100644 index 0000000..e69de29 diff --git a/pinky b/pinky new file mode 100644 index 0000000..e69de29 diff --git a/pr b/pr new file mode 100644 index 0000000..e69de29 diff --git a/printenv b/printenv new file mode 100755 index 0000000..1ec574a --- /dev/null +++ b/printenv @@ -0,0 +1,7 @@ +if [ -n "$*" ]; then + for i in $*; do + printf '%s=%s\n' "${i}" "${$i}" + done +else + env +fi diff --git a/ptx b/ptx new file mode 100644 index 0000000..e69de29 diff --git a/readlink b/readlink new file mode 100644 index 0000000..e69de29 diff --git a/realpath b/realpath new file mode 100644 index 0000000..e69de29 diff --git a/runcon b/runcon new file mode 100644 index 0000000..e69de29 diff --git a/seq b/seq new file mode 100755 index 0000000..585087b --- /dev/null +++ b/seq @@ -0,0 +1,30 @@ +# SYNOPSIS +# seq [OPTION]... LAST +# seq [OPTION]... FIRST LAST +# seq [OPTION]... FIRST INCREMENT LAST + +FIRST=1 +INCREMENT=1 + +if [ $# -eq 3 ]; then + FIRST=$1 + INCREMENT=$2 + LAST=$3 +elif [ $# -eq 2 ]; then + FIRST=$1 + LAST=$2; +elif [ $# -eq 1 ]; then + LAST=$1 +else + printf 'use one of:\n' + printf '\tseq LAST\n' + printf '\tseq FIRST LAST\n' + printf '\tseq FIRST INCREMENT LAST\n' + exit 1 +fi + +i=$FIRST +while [ $i -lt $LAST ]; do + printf '%d\n' $i + i=$((i + INCREMENT)) +done diff --git a/sha1sum b/sha1sum new file mode 100644 index 0000000..e69de29 diff --git a/sha224sum b/sha224sum new file mode 100644 index 0000000..e69de29 diff --git a/sha256sum b/sha256sum new file mode 100644 index 0000000..e69de29 diff --git a/sha384sum b/sha384sum new file mode 100644 index 0000000..e69de29 diff --git a/sha512sum b/sha512sum new file mode 100644 index 0000000..e69de29 diff --git a/shred b/shred new file mode 100644 index 0000000..e69de29 diff --git a/shuf b/shuf new file mode 100644 index 0000000..e69de29 diff --git a/stat b/stat new file mode 100644 index 0000000..e69de29 diff --git a/stdbuf b/stdbuf new file mode 100644 index 0000000..e69de29 diff --git a/sync b/sync new file mode 100644 index 0000000..e69de29 diff --git a/tac b/tac new file mode 100644 index 0000000..e69de29 diff --git a/timeout b/timeout new file mode 100644 index 0000000..e69de29 diff --git a/truncate b/truncate new file mode 100644 index 0000000..e69de29 diff --git a/uptime b/uptime new file mode 100644 index 0000000..e69de29 diff --git a/users b/users new file mode 100644 index 0000000..e69de29 diff --git a/vdir b/vdir new file mode 100644 index 0000000..e69de29 diff --git a/yes b/yes new file mode 100755 index 0000000..01c755f --- /dev/null +++ b/yes @@ -0,0 +1,4 @@ +ARG=${*-y} +while true; do + printf '%s\n' "${ARG}" +done -- cgit v1.2.1