⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 od-n

📁 实战Linux编程的原代码,希望对学驱动的人能有所帮助
💻
字号:
#!/bin/sh# Verify that `od -N N' reads no more than N bytes of input.if test "$VERBOSE" = yes; then  set -x  od --versionfi# FIXME: . $srcdir/../envvar-check# FIXME: . $srcdir/../lang-default# FIXME: PRIV_CHECK_ARG=require-root . $srcdir/../priv-check# FIXME: PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-checkpwd=`pwd`tmp=od-N.$$trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0trap '(exit $?); exit' 1 2 13 15framework_failure=0mkdir $tmp || framework_failure=1cd $tmp || framework_failure=1echo abcdefg > in || framework_failure=1if test $framework_failure = 1; then  echo 'failure in testing framework' 1>&2  (exit 1); exitfifail=0(od -An -N3 -c; od -An -N3 -c) < in > outcat <<EOF > exp || fail=1   a   b   c   d   e   fEOFcmp out exp || {  fail=1  diff out exp 2> /dev/null  }(exit $fail); exit

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -