home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / textutils-1.19-diffs.gz / textutils-1.19-diffs
Text File  |  1996-10-13  |  184KB  |  4,935 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/fsf/textutils/Product-Info amiga/fsf/textutils/Product-Info
  12. --- baseline/fsf/textutils/Product-Info    Wed Dec 31 17:00:00 1969
  13. +++ amiga/fsf/textutils/Product-Info    Sat Sep 28 00:00:00 1996
  14. @@ -0,0 +1,26 @@
  15. +.name
  16. +textutils
  17. +.fullname
  18. +GNU text processing utilities
  19. +.type
  20. +Text Processing
  21. +.short
  22. +GNU text processing utilities
  23. +.description
  24. +These are the GNU text file (actually, file contents) processing
  25. +utilities.  Most of these programs have significant advantages over
  26. +their Unix counterparts, such as greater speed, additional options,
  27. +and fewer arbitrary limits.  The programs that can be built with this
  28. +package are: cat, cksum, comm, csplit, cut, expand, fold, head, join,
  29. +nl, od paste, pr, sort, split, sum, tac, tail, tr, unexpand, uniq, and
  30. +wc.  The cmp program has moved to the GNU diff distribution.
  31. +.version
  32. +1.19
  33. +.author
  34. +Free Software Foundation
  35. +.requirements
  36. +Amiga binaries require ixemul.library.
  37. +.distribution
  38. +GNU Public License
  39. +.described-by
  40. +Fred Fish (fnf@ninemoons.com)
  41. diff -rup --new-file baseline/fsf/textutils/configure amiga/fsf/textutils/configure
  42. --- baseline/fsf/textutils/configure    Thu Jul 11 19:50:40 1996
  43. +++ amiga/fsf/textutils/configure    Mon Sep 30 22:51:04 1996
  44. @@ -55,6 +55,9 @@ libdir='${exec_prefix}/lib'
  45.  includedir='${prefix}/include'
  46.  oldincludedir='/usr/include'
  47.  infodir='${prefix}/info'
  48. +guidedir='${prefix}/guide'
  49. +psdir='${prefix}/ps'
  50. +dvidir='${prefix}/dvi'
  51.  mandir='${prefix}/man'
  52.  
  53.  # Initialize some other variables.
  54. @@ -169,6 +172,9 @@ Directory and file names:
  55.    --includedir=DIR        C header files in DIR [PREFIX/include]
  56.    --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  57.    --infodir=DIR           info documentation in DIR [PREFIX/info]
  58. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  59. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  60. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  61.    --mandir=DIR            man documentation in DIR [PREFIX/man]
  62.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  63.    --program-prefix=PREFIX prepend PREFIX to installed program names
  64. @@ -211,6 +217,18 @@ EOF
  65.    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  66.      infodir="$ac_optarg" ;;
  67.  
  68. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  69. +   ac_prev=guidedir ;;
  70. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  71. +
  72. + -psdir | --psdir | --psdi | --psd | --ps)
  73. +   ac_prev=psdir ;;
  74. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  75. +
  76. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  77. +   ac_prev=dvidir ;;
  78. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  79. +
  80.    -libdir | --libdir | --libdi | --libd)
  81.      ac_prev=libdir ;;
  82.    -libdir=* | --libdir=* | --libdi=* | --libd=*)
  83. @@ -675,7 +693,7 @@ else
  84.    yes;
  85.  #endif
  86.  EOF
  87. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  88. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  89.    ac_cv_prog_gcc=yes
  90.  else
  91.    ac_cv_prog_gcc=no
  92. @@ -702,9 +720,9 @@ fi
  93.  
  94.  echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  95.      if test $ac_cv_prog_gcc_g = yes; then
  96. -      CFLAGS="-g -O"
  97. +      CFLAGS="-g -O2"
  98.      else
  99. -      CFLAGS="-O"
  100. +      CFLAGS="-O2"
  101.      fi
  102.    fi
  103.  else
  104. @@ -738,6 +756,7 @@ ac_configure=$ac_aux_dir/configure # Thi
  105.  # SunOS /usr/etc/install
  106.  # IRIX /sbin/install
  107.  # AIX /bin/install
  108. +# AmigaOS /c/install
  109.  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  110.  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  111.  # ./install, which can be erroneously created by make from ./install.sh.
  112. @@ -750,7 +769,7 @@ else
  113.    for ac_dir in $PATH; do
  114.      # Account for people who put trailing slashes in PATH elements.
  115.      case "$ac_dir/" in
  116. -    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  117. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  118.      *)
  119.        # OSF1 and SCO ODT 3.0 have their own names for install.
  120.        for ac_prog in ginstall installbsd scoinst install; do
  121. @@ -831,13 +850,13 @@ else
  122.    # On the NeXT, cc -E runs the code through the compiler's parser,
  123.    # not just through cpp.
  124.    cat > conftest.$ac_ext <<EOF
  125. -#line 835 "configure"
  126. +#line 854 "configure"
  127.  #include "confdefs.h"
  128.  #include <assert.h>
  129.  Syntax Error
  130.  EOF
  131.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  132. -{ (eval echo configure:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  133. +{ (eval echo configure:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  134.  ac_err=`grep -v '^ *+' conftest.out`
  135.  if test -z "$ac_err"; then
  136.    :
  137. @@ -846,13 +865,13 @@ else
  138.    rm -rf conftest*
  139.    CPP="${CC-cc} -E -traditional-cpp"
  140.    cat > conftest.$ac_ext <<EOF
  141. -#line 850 "configure"
  142. +#line 869 "configure"
  143.  #include "confdefs.h"
  144.  #include <assert.h>
  145.  Syntax Error
  146.  EOF
  147.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  148. -{ (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  149. +{ (eval echo configure:875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  150.  ac_err=`grep -v '^ *+' conftest.out`
  151.  if test -z "$ac_err"; then
  152.    :
  153. @@ -879,7 +898,7 @@ if eval "test \"`echo '$''{'ac_cv_prog_g
  154.  else
  155.      ac_pattern="Autoconf.*'x'"
  156.    cat > conftest.$ac_ext <<EOF
  157. -#line 883 "configure"
  158. +#line 902 "configure"
  159.  #include "confdefs.h"
  160.  #include <sgtty.h>
  161.  Autoconf TIOCGETP
  162. @@ -897,7 +916,7 @@ rm -f conftest*
  163.  
  164.    if test $ac_cv_prog_gcc_traditional = no; then
  165.      cat > conftest.$ac_ext <<EOF
  166. -#line 901 "configure"
  167. +#line 920 "configure"
  168.  #include "confdefs.h"
  169.  #include <termio.h>
  170.  Autoconf TCGETA
  171. @@ -948,7 +967,7 @@ fi
  172.  
  173.  echo $ac_n "checking for AIX""... $ac_c" 1>&6
  174.  cat > conftest.$ac_ext <<EOF
  175. -#line 952 "configure"
  176. +#line 971 "configure"
  177.  #include "confdefs.h"
  178.  #ifdef _AIX
  179.    yes
  180. @@ -975,12 +994,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  181.    echo $ac_n "(cached) $ac_c" 1>&6
  182.  else
  183.    cat > conftest.$ac_ext <<EOF
  184. -#line 979 "configure"
  185. +#line 998 "configure"
  186.  #include "confdefs.h"
  187.  #include <minix/config.h>
  188.  EOF
  189.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  190. -{ (eval echo configure:984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  191. +{ (eval echo configure:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  192.  ac_err=`grep -v '^ *+' conftest.out`
  193.  if test -z "$ac_err"; then
  194.    rm -rf conftest*
  195. @@ -1058,7 +1077,7 @@ if eval "test \"`echo '$''{'ac_cv_func_r
  196.    echo $ac_n "(cached) $ac_c" 1>&6
  197.  else
  198.    cat > conftest.$ac_ext <<EOF
  199. -#line 1062 "configure"
  200. +#line 1081 "configure"
  201.  #include "confdefs.h"
  202.  /* System header to define __stub macros and hopefully few prototypes,
  203.      which can conflict with char re_rx_search(); below.  */
  204. @@ -1068,7 +1087,7 @@ else
  205.      builtin and then its argument prototype would still apply.  */
  206.  char re_rx_search();
  207.  
  208. -int main() { return 0; }
  209. +int main() { t(); return 0; }
  210.  int t() {
  211.  
  212.  /* The GNU C library defines this for functions which it implements
  213. @@ -1082,7 +1101,7 @@ re_rx_search();
  214.  
  215.  ; return 0; }
  216.  EOF
  217. -if { (eval echo configure:1086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  218. +if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  219.    rm -rf conftest*
  220.    eval "ac_cv_func_re_rx_search=yes"
  221.  else
  222. @@ -1111,12 +1130,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  223.    echo $ac_n "(cached) $ac_c" 1>&6
  224.  else
  225.    cat > conftest.$ac_ext <<EOF
  226. -#line 1115 "configure"
  227. +#line 1134 "configure"
  228.  #include "confdefs.h"
  229.  #include <$ac_hdr>
  230.  EOF
  231.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  232. -{ (eval echo configure:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  233. +{ (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  234.  ac_err=`grep -v '^ *+' conftest.out`
  235.  if test -z "$ac_err"; then
  236.    rm -rf conftest*
  237. @@ -1145,7 +1164,7 @@ if eval "test \"`echo '$''{'ac_cv_header
  238.    echo $ac_n "(cached) $ac_c" 1>&6
  239.  else
  240.    cat > conftest.$ac_ext <<EOF
  241. -#line 1149 "configure"
  242. +#line 1168 "configure"
  243.  #include "confdefs.h"
  244.  #include <sys/types.h>
  245.  #include <sys/stat.h>
  246. @@ -1204,11 +1223,11 @@ else
  247.    ac_cv_c_cross=yes
  248.  else
  249.  cat > conftest.$ac_ext <<EOF
  250. -#line 1208 "configure"
  251. +#line 1227 "configure"
  252.  #include "confdefs.h"
  253.  main(){return(0);}
  254.  EOF
  255. -{ (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  256. +{ (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  257.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  258.    ac_cv_c_cross=no
  259.  else
  260. @@ -1226,7 +1245,7 @@ if eval "test \"`echo '$''{'ac_cv_header
  261.    echo $ac_n "(cached) $ac_c" 1>&6
  262.  else
  263.    cat > conftest.$ac_ext <<EOF
  264. -#line 1230 "configure"
  265. +#line 1249 "configure"
  266.  #include "confdefs.h"
  267.  #include <stdlib.h>
  268.  #include <stdarg.h>
  269. @@ -1234,7 +1253,7 @@ else
  270.  #include <float.h>
  271.  EOF
  272.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  273. -{ (eval echo configure:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  274. +{ (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  275.  ac_err=`grep -v '^ *+' conftest.out`
  276.  if test -z "$ac_err"; then
  277.    rm -rf conftest*
  278. @@ -1249,7 +1268,7 @@ rm -f conftest*
  279.  if test $ac_cv_header_stdc = yes; then
  280.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  281.  cat > conftest.$ac_ext <<EOF
  282. -#line 1253 "configure"
  283. +#line 1272 "configure"
  284.  #include "confdefs.h"
  285.  #include <string.h>
  286.  EOF
  287. @@ -1267,7 +1286,7 @@ fi
  288.  if test $ac_cv_header_stdc = yes; then
  289.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  290.  cat > conftest.$ac_ext <<EOF
  291. -#line 1271 "configure"
  292. +#line 1290 "configure"
  293.  #include "confdefs.h"
  294.  #include <stdlib.h>
  295.  EOF
  296. @@ -1288,7 +1307,7 @@ if test "$cross_compiling" = yes; then
  297.    :
  298.  else
  299.  cat > conftest.$ac_ext <<EOF
  300. -#line 1292 "configure"
  301. +#line 1311 "configure"
  302.  #include "confdefs.h"
  303.  #include <ctype.h>
  304.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  305. @@ -1299,7 +1318,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
  306.  exit (0); }
  307.  
  308.  EOF
  309. -{ (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  310. +{ (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  311.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  312.    :
  313.  else
  314. @@ -1335,7 +1354,7 @@ for ac_arg in "" -qlanglvl=ansi -std1 "-
  315.  do
  316.    CFLAGS="$ac_save_CFLAGS $ac_arg"
  317.    cat > conftest.$ac_ext <<EOF
  318. -#line 1339 "configure"
  319. +#line 1358 "configure"
  320.  #include "confdefs.h"
  321.  #if !defined(__STDC__) || __STDC__ != 1
  322.  choke me
  323. @@ -1351,7 +1370,7 @@ struct s1 {int (*f) (int a);};
  324.  struct s2 {int (*f) (double a);};
  325.  ; return 0; }
  326.  EOF
  327. -if { (eval echo configure:1355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  328. +if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  329.    rm -rf conftest*
  330.    ac_cv_prog_cc_stdc="$ac_arg"; break
  331.  fi
  332. @@ -1390,7 +1409,7 @@ else
  333.    ac_cv_c_bigendian=unknown
  334.  # See if sys/param.h defines the BYTE_ORDER macro.
  335.  cat > conftest.$ac_ext <<EOF
  336. -#line 1394 "configure"
  337. +#line 1413 "configure"
  338.  #include "confdefs.h"
  339.  #include <sys/types.h>
  340.  #include <sys/param.h>
  341. @@ -1402,11 +1421,11 @@ int t() {
  342.  #endif
  343.  ; return 0; }
  344.  EOF
  345. -if { (eval echo configure:1406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  346. +if { (eval echo configure:1425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  347.    rm -rf conftest*
  348.    # It does; now see whether it defined to BIG_ENDIAN or not.
  349.  cat > conftest.$ac_ext <<EOF
  350. -#line 1410 "configure"
  351. +#line 1429 "configure"
  352.  #include "confdefs.h"
  353.  #include <sys/types.h>
  354.  #include <sys/param.h>
  355. @@ -1418,7 +1437,7 @@ int t() {
  356.  #endif
  357.  ; return 0; }
  358.  EOF
  359. -if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  360. +if { (eval echo configure:1441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  361.    rm -rf conftest*
  362.    ac_cv_c_bigendian=yes
  363.  else
  364. @@ -1435,7 +1454,7 @@ if test "$cross_compiling" = yes; then
  365.      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  366.  else
  367.  cat > conftest.$ac_ext <<EOF
  368. -#line 1439 "configure"
  369. +#line 1458 "configure"
  370.  #include "confdefs.h"
  371.  main () {
  372.    /* Are we little or big endian?  From Harbison&Steele.  */
  373. @@ -1448,7 +1467,7 @@ main () {
  374.    exit (u.c[sizeof (long) - 1] == 1);
  375.  }
  376.  EOF
  377. -{ (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  378. +{ (eval echo configure:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  379.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  380.    ac_cv_c_bigendian=no
  381.  else
  382. @@ -1472,7 +1491,7 @@ if eval "test \"`echo '$''{'ac_cv_c_cons
  383.    echo $ac_n "(cached) $ac_c" 1>&6
  384.  else
  385.    cat > conftest.$ac_ext <<EOF
  386. -#line 1476 "configure"
  387. +#line 1495 "configure"
  388.  #include "confdefs.h"
  389.  
  390.  int main() { return 0; }
  391. @@ -1522,7 +1541,7 @@ ccp = (char const *const *) p;
  392.  
  393.  ; return 0; }
  394.  EOF
  395. -if { (eval echo configure:1526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  396. +if { (eval echo configure:1545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  397.    rm -rf conftest*
  398.    ac_cv_c_const=yes
  399.  else
  400. @@ -1548,7 +1567,7 @@ else
  401.    ac_cv_c_inline=no
  402.  for ac_kw in inline __inline__ __inline; do
  403.    cat > conftest.$ac_ext <<EOF
  404. -#line 1552 "configure"
  405. +#line 1571 "configure"
  406.  #include "confdefs.h"
  407.  
  408.  int main() { return 0; }
  409. @@ -1556,7 +1575,7 @@ int t() {
  410.  } $ac_kw foo() {
  411.  ; return 0; }
  412.  EOF
  413. -if { (eval echo configure:1560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  414. +if { (eval echo configure:1579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  415.    rm -rf conftest*
  416.    ac_cv_c_inline=$ac_kw; break
  417.  fi
  418. @@ -1590,7 +1609,7 @@ if test "$cross_compiling" = yes; then
  419.      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  420.  else
  421.  cat > conftest.$ac_ext <<EOF
  422. -#line 1594 "configure"
  423. +#line 1613 "configure"
  424.  #include "confdefs.h"
  425.  int main() {
  426.  /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
  427. @@ -1598,7 +1617,7 @@ long double foo = 0.0;
  428.  /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
  429.  exit(sizeof(long double) < sizeof(double)); }
  430.  EOF
  431. -{ (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  432. +{ (eval echo configure:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  433.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  434.    ac_cv_c_long_double=yes
  435.  else
  436. @@ -1627,7 +1646,7 @@ if eval "test \"`echo '$''{'ac_cv_header
  437.    echo $ac_n "(cached) $ac_c" 1>&6
  438.  else
  439.    cat > conftest.$ac_ext <<EOF
  440. -#line 1631 "configure"
  441. +#line 1650 "configure"
  442.  #include "confdefs.h"
  443.  #include <sys/types.h>
  444.  #include <$ac_hdr>
  445. @@ -1636,7 +1655,7 @@ int t() {
  446.  DIR *dirp = 0;
  447.  ; return 0; }
  448.  EOF
  449. -if { (eval echo configure:1640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  450. +if { (eval echo configure:1659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  451.    rm -rf conftest*
  452.    eval "ac_cv_header_dirent_$ac_safe=yes"
  453.  else
  454. @@ -1667,19 +1686,19 @@ else
  455.    ac_save_LIBS="$LIBS"
  456.  LIBS="-ldir  $LIBS"
  457.  cat > conftest.$ac_ext <<EOF
  458. -#line 1671 "configure"
  459. +#line 1690 "configure"
  460.  #include "confdefs.h"
  461.  /* Override any gcc2 internal prototype to avoid an error.  */
  462.  /* We use char because int might match the return type of a gcc2
  463.      builtin and then its argument prototype would still apply.  */
  464.  char opendir();
  465.  
  466. -int main() { return 0; }
  467. +int main() { t(); return 0; }
  468.  int t() {
  469.  opendir()
  470.  ; return 0; }
  471.  EOF
  472. -if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  473. +if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  474.    rm -rf conftest*
  475.    eval "ac_cv_lib_$ac_lib_var=yes"
  476.  else
  477. @@ -1706,19 +1725,19 @@ else
  478.    ac_save_LIBS="$LIBS"
  479.  LIBS="-lx  $LIBS"
  480.  cat > conftest.$ac_ext <<EOF
  481. -#line 1710 "configure"
  482. +#line 1729 "configure"
  483.  #include "confdefs.h"
  484.  /* Override any gcc2 internal prototype to avoid an error.  */
  485.  /* We use char because int might match the return type of a gcc2
  486.      builtin and then its argument prototype would still apply.  */
  487.  char opendir();
  488.  
  489. -int main() { return 0; }
  490. +int main() { t(); return 0; }
  491.  int t() {
  492.  opendir()
  493.  ; return 0; }
  494.  EOF
  495. -if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  496. +if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  497.    rm -rf conftest*
  498.    eval "ac_cv_lib_$ac_lib_var=yes"
  499.  else
  500. @@ -1743,7 +1762,7 @@ if eval "test \"`echo '$''{'ac_cv_struct
  501.    echo $ac_n "(cached) $ac_c" 1>&6
  502.  else
  503.    cat > conftest.$ac_ext <<EOF
  504. -#line 1747 "configure"
  505. +#line 1766 "configure"
  506.  #include "confdefs.h"
  507.  #include <sys/types.h>
  508.  #include <sys/stat.h>
  509. @@ -1752,7 +1771,7 @@ int t() {
  510.  struct stat s; s.st_blksize;
  511.  ; return 0; }
  512.  EOF
  513. -if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  514. +if { (eval echo configure:1775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  515.    rm -rf conftest*
  516.    ac_cv_struct_st_blksize=yes
  517.  else
  518. @@ -1776,7 +1795,7 @@ if eval "test \"`echo '$''{'ac_cv_type_o
  519.    echo $ac_n "(cached) $ac_c" 1>&6
  520.  else
  521.    cat > conftest.$ac_ext <<EOF
  522. -#line 1780 "configure"
  523. +#line 1799 "configure"
  524.  #include "confdefs.h"
  525.  #include <sys/types.h>
  526.  #if STDC_HEADERS
  527. @@ -1807,7 +1826,7 @@ if eval "test \"`echo '$''{'ac_cv_type_s
  528.    echo $ac_n "(cached) $ac_c" 1>&6
  529.  else
  530.    cat > conftest.$ac_ext <<EOF
  531. -#line 1811 "configure"
  532. +#line 1830 "configure"
  533.  #include "confdefs.h"
  534.  #include <sys/types.h>
  535.  #include <signal.h>
  536. @@ -1825,7 +1844,7 @@ int t() {
  537.  int i;
  538.  ; return 0; }
  539.  EOF
  540. -if { (eval echo configure:1829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  541. +if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  542.    rm -rf conftest*
  543.    ac_cv_type_signal=void
  544.  else
  545. @@ -1847,7 +1866,7 @@ if eval "test \"`echo '$''{'ac_cv_type_s
  546.    echo $ac_n "(cached) $ac_c" 1>&6
  547.  else
  548.    cat > conftest.$ac_ext <<EOF
  549. -#line 1851 "configure"
  550. +#line 1870 "configure"
  551.  #include "confdefs.h"
  552.  #include <sys/types.h>
  553.  #if STDC_HEADERS
  554. @@ -1881,7 +1900,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  555.    echo $ac_n "(cached) $ac_c" 1>&6
  556.  else
  557.    cat > conftest.$ac_ext <<EOF
  558. -#line 1885 "configure"
  559. +#line 1904 "configure"
  560.  #include "confdefs.h"
  561.  /* System header to define __stub macros and hopefully few prototypes,
  562.      which can conflict with char $ac_func(); below.  */
  563. @@ -1891,7 +1910,7 @@ else
  564.      builtin and then its argument prototype would still apply.  */
  565.  char $ac_func();
  566.  
  567. -int main() { return 0; }
  568. +int main() { t(); return 0; }
  569.  int t() {
  570.  
  571.  /* The GNU C library defines this for functions which it implements
  572. @@ -1905,7 +1924,7 @@ $ac_func();
  573.  
  574.  ; return 0; }
  575.  EOF
  576. -if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  577. +if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  578.    rm -rf conftest*
  579.    eval "ac_cv_func_$ac_func=yes"
  580.  else
  581. @@ -1934,15 +1953,15 @@ if eval "test \"`echo '$''{'ac_cv_header
  582.    echo $ac_n "(cached) $ac_c" 1>&6
  583.  else
  584.    cat > conftest.$ac_ext <<EOF
  585. -#line 1938 "configure"
  586. +#line 1957 "configure"
  587.  #include "confdefs.h"
  588.  #include <alloca.h>
  589. -int main() { return 0; }
  590. +int main() { t(); return 0; }
  591.  int t() {
  592.  char *p = alloca(2 * sizeof(int));
  593.  ; return 0; }
  594.  EOF
  595. -if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  596. +if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  597.    rm -rf conftest*
  598.    ac_cv_header_alloca_h=yes
  599.  else
  600. @@ -1966,7 +1985,7 @@ if eval "test \"`echo '$''{'ac_cv_func_a
  601.    echo $ac_n "(cached) $ac_c" 1>&6
  602.  else
  603.    cat > conftest.$ac_ext <<EOF
  604. -#line 1970 "configure"
  605. +#line 1989 "configure"
  606.  #include "confdefs.h"
  607.  
  608.  #ifdef __GNUC__
  609. @@ -1985,12 +2004,12 @@ char *alloca ();
  610.  # endif
  611.  #endif
  612.  
  613. -int main() { return 0; }
  614. +int main() { t(); return 0; }
  615.  int t() {
  616.  char *p = (char *) alloca(1);
  617.  ; return 0; }
  618.  EOF
  619. -if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  620. +if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  621.    rm -rf conftest*
  622.    ac_cv_func_alloca=yes
  623.  else
  624. @@ -2025,7 +2044,7 @@ if eval "test \"`echo '$''{'ac_cv_os_cra
  625.    echo $ac_n "(cached) $ac_c" 1>&6
  626.  else
  627.    cat > conftest.$ac_ext <<EOF
  628. -#line 2029 "configure"
  629. +#line 2048 "configure"
  630.  #include "confdefs.h"
  631.  #if defined(CRAY) && ! defined(CRAY2)
  632.  webecray
  633. @@ -2054,7 +2073,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  634.    echo $ac_n "(cached) $ac_c" 1>&6
  635.  else
  636.    cat > conftest.$ac_ext <<EOF
  637. -#line 2058 "configure"
  638. +#line 2077 "configure"
  639.  #include "confdefs.h"
  640.  /* System header to define __stub macros and hopefully few prototypes,
  641.      which can conflict with char $ac_func(); below.  */
  642. @@ -2064,7 +2083,7 @@ else
  643.      builtin and then its argument prototype would still apply.  */
  644.  char $ac_func();
  645.  
  646. -int main() { return 0; }
  647. +int main() { t(); return 0; }
  648.  int t() {
  649.  
  650.  /* The GNU C library defines this for functions which it implements
  651. @@ -2078,7 +2097,7 @@ $ac_func();
  652.  
  653.  ; return 0; }
  654.  EOF
  655. -if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  656. +if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  657.    rm -rf conftest*
  658.    eval "ac_cv_func_$ac_func=yes"
  659.  else
  660. @@ -2110,7 +2129,7 @@ else
  661.    ac_cv_c_stack_direction=0
  662.  else
  663.  cat > conftest.$ac_ext <<EOF
  664. -#line 2114 "configure"
  665. +#line 2133 "configure"
  666.  #include "confdefs.h"
  667.  find_stack_direction ()
  668.  {
  669. @@ -2129,7 +2148,7 @@ main ()
  670.    exit (find_stack_direction() < 0);
  671.  }
  672.  EOF
  673. -{ (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  674. +{ (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  675.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  676.    ac_cv_c_stack_direction=1
  677.  else
  678. @@ -2154,7 +2173,7 @@ else
  679.    ac_cv_func_memcmp=no
  680.  else
  681.  cat > conftest.$ac_ext <<EOF
  682. -#line 2158 "configure"
  683. +#line 2177 "configure"
  684.  #include "confdefs.h"
  685.  
  686.  main()
  687. @@ -2164,7 +2183,7 @@ main()
  688.  }
  689.  
  690.  EOF
  691. -{ (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  692. +{ (eval echo configure:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  693.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  694.    ac_cv_func_memcmp=yes
  695.  else
  696. @@ -2182,7 +2201,7 @@ if eval "test \"`echo '$''{'ac_cv_func_v
  697.    echo $ac_n "(cached) $ac_c" 1>&6
  698.  else
  699.    cat > conftest.$ac_ext <<EOF
  700. -#line 2186 "configure"
  701. +#line 2205 "configure"
  702.  #include "confdefs.h"
  703.  /* System header to define __stub macros and hopefully few prototypes,
  704.      which can conflict with char vprintf(); below.  */
  705. @@ -2192,7 +2211,7 @@ else
  706.      builtin and then its argument prototype would still apply.  */
  707.  char vprintf();
  708.  
  709. -int main() { return 0; }
  710. +int main() { t(); return 0; }
  711.  int t() {
  712.  
  713.  /* The GNU C library defines this for functions which it implements
  714. @@ -2206,7 +2225,7 @@ vprintf();
  715.  
  716.  ; return 0; }
  717.  EOF
  718. -if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  719. +if { (eval echo configure:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  720.    rm -rf conftest*
  721.    eval "ac_cv_func_vprintf=yes"
  722.  else
  723. @@ -2232,7 +2251,7 @@ if eval "test \"`echo '$''{'ac_cv_func__
  724.    echo $ac_n "(cached) $ac_c" 1>&6
  725.  else
  726.    cat > conftest.$ac_ext <<EOF
  727. -#line 2236 "configure"
  728. +#line 2255 "configure"
  729.  #include "confdefs.h"
  730.  /* System header to define __stub macros and hopefully few prototypes,
  731.      which can conflict with char _doprnt(); below.  */
  732. @@ -2242,7 +2261,7 @@ else
  733.      builtin and then its argument prototype would still apply.  */
  734.  char _doprnt();
  735.  
  736. -int main() { return 0; }
  737. +int main() { t(); return 0; }
  738.  int t() {
  739.  
  740.  /* The GNU C library defines this for functions which it implements
  741. @@ -2256,7 +2275,7 @@ _doprnt();
  742.  
  743.  ; return 0; }
  744.  EOF
  745. -if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  746. +if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  747.    rm -rf conftest*
  748.    eval "ac_cv_func__doprnt=yes"
  749.  else
  750. @@ -2286,7 +2305,7 @@ else
  751.    ac_cv_func_strtod=no
  752.  else
  753.  cat > conftest.$ac_ext <<EOF
  754. -#line 2290 "configure"
  755. +#line 2309 "configure"
  756.  #include "confdefs.h"
  757.  
  758.  double strtod ();
  759. @@ -2316,7 +2335,7 @@ main()
  760.  }
  761.  
  762.  EOF
  763. -{ (eval echo configure:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  764. +{ (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  765.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  766.    ac_cv_func_strtod=yes
  767.  else
  768. @@ -2336,7 +2355,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  769.    echo $ac_n "(cached) $ac_c" 1>&6
  770.  else
  771.    cat > conftest.$ac_ext <<EOF
  772. -#line 2340 "configure"
  773. +#line 2359 "configure"
  774.  #include "confdefs.h"
  775.  /* System header to define __stub macros and hopefully few prototypes,
  776.      which can conflict with char $ac_func(); below.  */
  777. @@ -2346,7 +2365,7 @@ else
  778.      builtin and then its argument prototype would still apply.  */
  779.  char $ac_func();
  780.  
  781. -int main() { return 0; }
  782. +int main() { t(); return 0; }
  783.  int t() {
  784.  
  785.  /* The GNU C library defines this for functions which it implements
  786. @@ -2360,7 +2379,7 @@ $ac_func();
  787.  
  788.  ; return 0; }
  789.  EOF
  790. -if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  791. +if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  792.    rm -rf conftest*
  793.    eval "ac_cv_func_$ac_func=yes"
  794.  else
  795. @@ -2391,19 +2410,19 @@ else
  796.    ac_save_LIBS="$LIBS"
  797.  LIBS="-lm  $LIBS"
  798.  cat > conftest.$ac_ext <<EOF
  799. -#line 2395 "configure"
  800. +#line 2414 "configure"
  801.  #include "confdefs.h"
  802.  /* Override any gcc2 internal prototype to avoid an error.  */
  803.  /* We use char because int might match the return type of a gcc2
  804.      builtin and then its argument prototype would still apply.  */
  805.  char pow();
  806.  
  807. -int main() { return 0; }
  808. +int main() { t(); return 0; }
  809.  int t() {
  810.  pow()
  811.  ; return 0; }
  812.  EOF
  813. -if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  814. +if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  815.    rm -rf conftest*
  816.    eval "ac_cv_lib_$ac_lib_var=yes"
  817.  else
  818. @@ -2416,7 +2435,7 @@ LIBS="$ac_save_LIBS"
  819.  fi
  820.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  821.    echo "$ac_t""yes" 1>&6
  822. -    ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  823. +    ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  824.    cat >> confdefs.h <<EOF
  825.  #define $ac_tr_lib 1
  826.  EOF
  827. @@ -2437,7 +2456,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  828.    echo $ac_n "(cached) $ac_c" 1>&6
  829.  else
  830.    cat > conftest.$ac_ext <<EOF
  831. -#line 2441 "configure"
  832. +#line 2460 "configure"
  833.  #include "confdefs.h"
  834.  /* System header to define __stub macros and hopefully few prototypes,
  835.      which can conflict with char $ac_func(); below.  */
  836. @@ -2447,7 +2466,7 @@ else
  837.      builtin and then its argument prototype would still apply.  */
  838.  char $ac_func();
  839.  
  840. -int main() { return 0; }
  841. +int main() { t(); return 0; }
  842.  int t() {
  843.  
  844.  /* The GNU C library defines this for functions which it implements
  845. @@ -2461,7 +2480,7 @@ $ac_func();
  846.  
  847.  ; return 0; }
  848.  EOF
  849. -if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  850. +if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  851.    rm -rf conftest*
  852.    eval "ac_cv_func_$ac_func=yes"
  853.  else
  854. @@ -2486,7 +2505,7 @@ if eval "test \"`echo '$''{'ac_cv_func_g
  855.    echo $ac_n "(cached) $ac_c" 1>&6
  856.  else
  857.    cat > conftest.$ac_ext <<EOF
  858. -#line 2490 "configure"
  859. +#line 2509 "configure"
  860.  #include "confdefs.h"
  861.  /* System header to define __stub macros and hopefully few prototypes,
  862.      which can conflict with char getopt_long(); below.  */
  863. @@ -2496,7 +2515,7 @@ else
  864.      builtin and then its argument prototype would still apply.  */
  865.  char getopt_long();
  866.  
  867. -int main() { return 0; }
  868. +int main() { t(); return 0; }
  869.  int t() {
  870.  
  871.  /* The GNU C library defines this for functions which it implements
  872. @@ -2510,7 +2529,7 @@ getopt_long();
  873.  
  874.  ; return 0; }
  875.  EOF
  876. -if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  877. +if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  878.    rm -rf conftest*
  879.    eval "ac_cv_func_getopt_long=yes"
  880.  else
  881. @@ -2537,7 +2556,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  882.    echo $ac_n "(cached) $ac_c" 1>&6
  883.  else
  884.    cat > conftest.$ac_ext <<EOF
  885. -#line 2541 "configure"
  886. +#line 2560 "configure"
  887.  #include "confdefs.h"
  888.  /* System header to define __stub macros and hopefully few prototypes,
  889.      which can conflict with char $ac_func(); below.  */
  890. @@ -2547,7 +2566,7 @@ else
  891.      builtin and then its argument prototype would still apply.  */
  892.  char $ac_func();
  893.  
  894. -int main() { return 0; }
  895. +int main() { t(); return 0; }
  896.  int t() {
  897.  
  898.  /* The GNU C library defines this for functions which it implements
  899. @@ -2561,7 +2580,7 @@ $ac_func();
  900.  
  901.  ; return 0; }
  902.  EOF
  903. -if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  904. +if { (eval echo configure:2584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  905.    rm -rf conftest*
  906.    eval "ac_cv_func_$ac_func=yes"
  907.  else
  908. @@ -2591,7 +2610,7 @@ else
  909.    ac_cv_func_mmap=no
  910.  else
  911.  cat > conftest.$ac_ext <<EOF
  912. -#line 2595 "configure"
  913. +#line 2614 "configure"
  914.  #include "confdefs.h"
  915.  
  916.  /* Thanks to Mike Haertel and Jim Avera for this test. */
  917. @@ -2660,7 +2679,7 @@ main()
  918.  }
  919.  
  920.  EOF
  921. -{ (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  922. +{ (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  923.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  924.    ac_cv_func_mmap=yes
  925.  else
  926. @@ -2688,12 +2707,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  927.    echo $ac_n "(cached) $ac_c" 1>&6
  928.  else
  929.    cat > conftest.$ac_ext <<EOF
  930. -#line 2692 "configure"
  931. +#line 2711 "configure"
  932.  #include "confdefs.h"
  933.  #include <$ac_hdr>
  934.  EOF
  935.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  936. -{ (eval echo configure:2697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  937. +{ (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  938.  ac_err=`grep -v '^ *+' conftest.out`
  939.  if test -z "$ac_err"; then
  940.    rm -rf conftest*
  941. @@ -2725,7 +2744,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  942.    echo $ac_n "(cached) $ac_c" 1>&6
  943.  else
  944.    cat > conftest.$ac_ext <<EOF
  945. -#line 2729 "configure"
  946. +#line 2748 "configure"
  947.  #include "confdefs.h"
  948.  /* System header to define __stub macros and hopefully few prototypes,
  949.      which can conflict with char $ac_func(); below.  */
  950. @@ -2735,7 +2754,7 @@ else
  951.      builtin and then its argument prototype would still apply.  */
  952.  char $ac_func();
  953.  
  954. -int main() { return 0; }
  955. +int main() { t(); return 0; }
  956.  int t() {
  957.  
  958.  /* The GNU C library defines this for functions which it implements
  959. @@ -2749,7 +2768,7 @@ $ac_func();
  960.  
  961.  ; return 0; }
  962.  EOF
  963. -if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  964. +if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  965.    rm -rf conftest*
  966.    eval "ac_cv_func_$ac_func=yes"
  967.  else
  968. @@ -2780,7 +2799,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  969.    echo $ac_n "(cached) $ac_c" 1>&6
  970.  else
  971.    cat > conftest.$ac_ext <<EOF
  972. -#line 2784 "configure"
  973. +#line 2803 "configure"
  974.  #include "confdefs.h"
  975.  /* System header to define __stub macros and hopefully few prototypes,
  976.      which can conflict with char $ac_func(); below.  */
  977. @@ -2790,7 +2809,7 @@ else
  978.      builtin and then its argument prototype would still apply.  */
  979.  char $ac_func();
  980.  
  981. -int main() { return 0; }
  982. +int main() { t(); return 0; }
  983.  int t() {
  984.  
  985.  /* The GNU C library defines this for functions which it implements
  986. @@ -2804,7 +2823,7 @@ $ac_func();
  987.  
  988.  ; return 0; }
  989.  EOF
  990. -if { (eval echo configure:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  991. +if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  992.    rm -rf conftest*
  993.    eval "ac_cv_func_$ac_func=yes"
  994.  else
  995. @@ -2840,15 +2859,15 @@ if eval "test \"`echo '$''{'ud_cv_val_LC
  996.    echo $ac_n "(cached) $ac_c" 1>&6
  997.  else
  998.    cat > conftest.$ac_ext <<EOF
  999. -#line 2844 "configure"
  1000. +#line 2863 "configure"
  1001.  #include "confdefs.h"
  1002.  #include <locale.h>
  1003. -int main() { return 0; }
  1004. +int main() { t(); return 0; }
  1005.  int t() {
  1006.  return LC_MESSAGES
  1007.  ; return 0; }
  1008.  EOF
  1009. -if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1010. +if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1011.    rm -rf conftest*
  1012.    ud_cv_val_LC_MESSAGES=yes
  1013.  else
  1014. @@ -2909,12 +2928,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  1015.    echo $ac_n "(cached) $ac_c" 1>&6
  1016.  else
  1017.    cat > conftest.$ac_ext <<EOF
  1018. -#line 2913 "configure"
  1019. +#line 2932 "configure"
  1020.  #include "confdefs.h"
  1021.  #include <libintl.h>
  1022.  EOF
  1023.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1024. -{ (eval echo configure:2918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1025. +{ (eval echo configure:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1026.  ac_err=`grep -v '^ *+' conftest.out`
  1027.  if test -z "$ac_err"; then
  1028.    rm -rf conftest*
  1029. @@ -2936,19 +2955,19 @@ else
  1030.    ac_save_LIBS="$LIBS"
  1031.  LIBS="-lintl  $LIBS"
  1032.  cat > conftest.$ac_ext <<EOF
  1033. -#line 2940 "configure"
  1034. +#line 2959 "configure"
  1035.  #include "confdefs.h"
  1036.  /* Override any gcc2 internal prototype to avoid an error.  */
  1037.  /* We use char because int might match the return type of a gcc2
  1038.      builtin and then its argument prototype would still apply.  */
  1039.  char bindtextdomain();
  1040.  
  1041. -int main() { return 0; }
  1042. +int main() { t(); return 0; }
  1043.  int t() {
  1044.  bindtextdomain()
  1045.  ; return 0; }
  1046.  EOF
  1047. -if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1048. +if { (eval echo configure:2971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1049.    rm -rf conftest*
  1050.    eval "ac_cv_lib_$ac_lib_var=yes"
  1051.  else
  1052. @@ -2961,7 +2980,7 @@ LIBS="$ac_save_LIBS"
  1053.  fi
  1054.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1055.    echo "$ac_t""yes" 1>&6
  1056. -    ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1057. +    ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1058.    cat >> confdefs.h <<EOF
  1059.  #define $ac_tr_lib 1
  1060.  EOF
  1061. @@ -2977,7 +2996,7 @@ if eval "test \"`echo '$''{'ac_cv_func_g
  1062.    echo $ac_n "(cached) $ac_c" 1>&6
  1063.  else
  1064.    cat > conftest.$ac_ext <<EOF
  1065. -#line 2981 "configure"
  1066. +#line 3000 "configure"
  1067.  #include "confdefs.h"
  1068.  /* System header to define __stub macros and hopefully few prototypes,
  1069.      which can conflict with char gettext(); below.  */
  1070. @@ -2987,7 +3006,7 @@ else
  1071.      builtin and then its argument prototype would still apply.  */
  1072.  char gettext();
  1073.  
  1074. -int main() { return 0; }
  1075. +int main() { t(); return 0; }
  1076.  int t() {
  1077.  
  1078.  /* The GNU C library defines this for functions which it implements
  1079. @@ -3001,7 +3020,7 @@ gettext();
  1080.  
  1081.  ; return 0; }
  1082.  EOF
  1083. -if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1084. +if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1085.    rm -rf conftest*
  1086.    eval "ac_cv_func_gettext=yes"
  1087.  else
  1088. @@ -3057,7 +3076,7 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  1089.    echo $ac_n "(cached) $ac_c" 1>&6
  1090.  else
  1091.    cat > conftest.$ac_ext <<EOF
  1092. -#line 3061 "configure"
  1093. +#line 3080 "configure"
  1094.  #include "confdefs.h"
  1095.  /* System header to define __stub macros and hopefully few prototypes,
  1096.      which can conflict with char $ac_func(); below.  */
  1097. @@ -3067,7 +3086,7 @@ else
  1098.      builtin and then its argument prototype would still apply.  */
  1099.  char $ac_func();
  1100.  
  1101. -int main() { return 0; }
  1102. +int main() { t(); return 0; }
  1103.  int t() {
  1104.  
  1105.  /* The GNU C library defines this for functions which it implements
  1106. @@ -3081,7 +3100,7 @@ $ac_func();
  1107.  
  1108.  ; return 0; }
  1109.  EOF
  1110. -if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1111. +if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1112.    rm -rf conftest*
  1113.    eval "ac_cv_func_$ac_func=yes"
  1114.  else
  1115. @@ -3168,16 +3187,16 @@ else
  1116.  fi
  1117.  
  1118.          cat > conftest.$ac_ext <<EOF
  1119. -#line 3172 "configure"
  1120. +#line 3191 "configure"
  1121.  #include "confdefs.h"
  1122.  
  1123. -int main() { return 0; }
  1124. +int main() { t(); return 0; }
  1125.  int t() {
  1126.  extern int _nl_msg_cat_cntr;
  1127.                     return _nl_msg_cat_cntr
  1128.  ; return 0; }
  1129.  EOF
  1130. -if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1131. +if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1132.    rm -rf conftest*
  1133.    CATOBJEXT=.gmo
  1134.             DATADIRNAME=share
  1135. @@ -3220,15 +3239,15 @@ else
  1136.    ac_save_LIBS="$LIBS"
  1137.  LIBS="-li  $LIBS"
  1138.  cat > conftest.$ac_ext <<EOF
  1139. -#line 3224 "configure"
  1140. +#line 3243 "configure"
  1141.  #include "confdefs.h"
  1142.  
  1143. -int main() { return 0; }
  1144. +int main() { t(); return 0; }
  1145.  int t() {
  1146.  main()
  1147.  ; return 0; }
  1148.  EOF
  1149. -if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1150. +if { (eval echo configure:3251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1151.    rm -rf conftest*
  1152.    eval "ac_cv_lib_$ac_lib_var=yes"
  1153.  else
  1154. @@ -3241,7 +3260,7 @@ LIBS="$ac_save_LIBS"
  1155.  fi
  1156.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1157.    echo "$ac_t""yes" 1>&6
  1158. -    ac_tr_lib=HAVE_LIB`echo i | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1159. +    ac_tr_lib=HAVE_LIB`echo i | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1160.    cat >> confdefs.h <<EOF
  1161.  #define $ac_tr_lib 1
  1162.  EOF
  1163. @@ -3257,7 +3276,7 @@ if eval "test \"`echo '$''{'ac_cv_func_c
  1164.    echo $ac_n "(cached) $ac_c" 1>&6
  1165.  else
  1166.    cat > conftest.$ac_ext <<EOF
  1167. -#line 3261 "configure"
  1168. +#line 3280 "configure"
  1169.  #include "confdefs.h"
  1170.  /* System header to define __stub macros and hopefully few prototypes,
  1171.      which can conflict with char catgets(); below.  */
  1172. @@ -3267,7 +3286,7 @@ else
  1173.      builtin and then its argument prototype would still apply.  */
  1174.  char catgets();
  1175.  
  1176. -int main() { return 0; }
  1177. +int main() { t(); return 0; }
  1178.  int t() {
  1179.  
  1180.  /* The GNU C library defines this for functions which it implements
  1181. @@ -3281,7 +3300,7 @@ catgets();
  1182.  
  1183.  ; return 0; }
  1184.  EOF
  1185. -if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1186. +if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1187.    rm -rf conftest*
  1188.    eval "ac_cv_func_catgets=yes"
  1189.  else
  1190. @@ -3631,12 +3650,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  1191.    echo $ac_n "(cached) $ac_c" 1>&6
  1192.  else
  1193.    cat > conftest.$ac_ext <<EOF
  1194. -#line 3635 "configure"
  1195. +#line 3654 "configure"
  1196.  #include "confdefs.h"
  1197.  #include <linux/version.h>
  1198.  EOF
  1199.  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1200. -{ (eval echo configure:3640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1201. +{ (eval echo configure:3659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1202.  ac_err=`grep -v '^ *+' conftest.out`
  1203.  if test -z "$ac_err"; then
  1204.    rm -rf conftest*
  1205. @@ -3751,7 +3770,9 @@ DEFS=-DHAVE_CONFIG_H
  1206.  : ${CONFIG_STATUS=./config.status}
  1207.  
  1208.  echo creating $CONFIG_STATUS
  1209. -rm -f $CONFIG_STATUS
  1210. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  1211. +# being executed, so just move it out of the way instead.
  1212. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1213.  cat > $CONFIG_STATUS <<EOF
  1214.  #! /bin/sh
  1215.  # Generated automatically by configure.
  1216. @@ -3813,6 +3834,9 @@ s%@libdir@%$libdir%g
  1217.  s%@includedir@%$includedir%g
  1218.  s%@oldincludedir@%$oldincludedir%g
  1219.  s%@infodir@%$infodir%g
  1220. +s%@guidedir@%$guidedir%g
  1221. +s%@psdir@%$psdir%g
  1222. +s%@dvidir@%$dvidir%g
  1223.  s%@mandir@%$mandir%g
  1224.  s%@PACKAGE@%$PACKAGE%g
  1225.  s%@VERSION@%$VERSION%g
  1226. @@ -4063,6 +4087,7 @@ sed -e "/POTFILES =/r po/POTFILES" po/Ma
  1227.  exit 0
  1228.  EOF
  1229.  chmod +x $CONFIG_STATUS
  1230. +rm -f CONFIG.STATUS.old
  1231.  rm -fr confdefs* $ac_clean_files
  1232.  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1233.  
  1234. diff -rup --new-file baseline/fsf/textutils/doc/Makefile.in amiga/fsf/textutils/doc/Makefile.in
  1235. --- baseline/fsf/textutils/doc/Makefile.in    Thu Jul 11 20:26:19 1996
  1236. +++ amiga/fsf/textutils/doc/Makefile.in    Sat Sep 28 00:00:00 1996
  1237. @@ -25,6 +25,9 @@ infodir = @infodir@
  1238.  mandir = @mandir@
  1239.  includedir = @includedir@
  1240.  oldincludedir = /usr/include
  1241. +guidedir = $(prefix)/guide
  1242. +dvidir = $(prefix)/dvi
  1243. +psdir = $(prefix)/ps
  1244.  
  1245.  pkgdatadir = $(datadir)/@PACKAGE@
  1246.  pkglibdir = $(libdir)/@PACKAGE@
  1247. @@ -48,6 +51,7 @@ CONFIG_HEADER = ../config.h
  1248.  
  1249.  MAKEINFO = makeinfo
  1250.  TEXI2DVI = texi2dvi
  1251. +DVIPS = dvips
  1252.  INFOS = textutils.info*
  1253.  INFO_DEPS = textutils.info
  1254.  DVIS = textutils.dvi
  1255. @@ -102,16 +106,21 @@ textutils.info: textutils.texi version.t
  1256.  
  1257.  
  1258.  .texi.info:
  1259. -    $(MAKEINFO) -I$(srcdir) $< -o $(srcdir)/$@
  1260. +    $(MAKEINFO) -I$(srcdir) $< -o $(@F)
  1261.  
  1262.  .texi.dvi:
  1263.      TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
  1264.  
  1265. +.dvi.ps:
  1266. +    $(DVIPS) $< -o $(@F)
  1267. +
  1268.  install-info: $(INFO_DEPS)
  1269.      $(mkinstalldirs) $(infodir)
  1270.      for file in $(INFO_DEPS); do        \
  1271. -      for ifile in `cd $(srcdir) && echo $$file*`; do \
  1272. -        $(INSTALL_DATA) $(srcdir)/$$ifile $(infodir)/$$ifile; \
  1273. +      if [ -r ./$$file ]; then dir=.; else dir=$(srcdir); fi; \
  1274. +      for ifile in $$dir/$$file*; do    \
  1275. +        basename=`echo $$ifile|sed 's,.*/,,'`; \
  1276. +        $(INSTALL_DATA) $$ifile $(infodir)/$$basename; \
  1277.        done;                    \
  1278.      done
  1279.  
  1280. @@ -144,24 +153,42 @@ distdir: $(DEP_DISTFILES)
  1281.        || ln $(srcdir)/$$file $(distdir)/$$file 2> /dev/null \
  1282.        || cp -p $(srcdir)/$$file $(distdir)/$$file; \
  1283.      done
  1284. +
  1285.  info: $(INFO_DEPS)
  1286.  
  1287.  dvi: $(DVIS)
  1288.  
  1289. +guide: textutils.guide
  1290. +
  1291. +textutils.guide: textutils.texi
  1292. +    $(MAKEINFO) -I$(srcdir) $(srcdir)/textutils.texi --no-split --output=$@ --amiga
  1293. +
  1294. +ps: textutils.ps
  1295. +
  1296.  check: all
  1297.  
  1298.  installcheck:
  1299.  
  1300. -install-exec: 
  1301. -
  1302.  install-data: install-info
  1303.  
  1304. -install: install-exec install-data all
  1305. +install-guide: guide
  1306. +    $(top_srcdir)/mkinstalldirs $(guidedir)
  1307. +    $(INSTALL_DATA) textutils.guide $(guidedir)/textutils.guide
  1308. +
  1309. +install-dvi: dvi
  1310. +    $(top_srcdir)/mkinstalldirs $(dvidir)
  1311. +    $(INSTALL_DATA) textutils.dvi $(dvidir)/textutils.dvi
  1312. +
  1313. +install-ps: ps
  1314. +    $(top_srcdir)/mkinstalldirs $(psdir)
  1315. +    $(INSTALL_DATA) textutils.ps $(psdir)/textutils.ps
  1316. +
  1317. +install: install-data install-guide install-dvi install-ps
  1318.      @:
  1319.  
  1320.  uninstall: uninstall-info
  1321.  
  1322. -all: $(INFO_DEPS) Makefile
  1323. +all: info guide dvi ps
  1324.  
  1325.  install-strip:
  1326.      $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
  1327. @@ -202,7 +229,7 @@ installdirs mostlyclean-generic distclea
  1328.  maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  1329.  
  1330.  .SUFFIXES:
  1331. -.SUFFIXES: .texi .info .dvi
  1332. +.SUFFIXES: .texi .info .dvi .ps .guide
  1333.  
  1334.  # Tell versions [3.59,3.63) of GNU make to not export all variables.
  1335.  # Otherwise a system limit (for SysV at least) may be exceeded.
  1336. diff -rup --new-file baseline/fsf/textutils/doc/textutils.info amiga/fsf/textutils/doc/textutils.info
  1337. --- baseline/fsf/textutils/doc/textutils.info    Thu Jul 11 20:14:24 1996
  1338. +++ amiga/fsf/textutils/doc/textutils.info    Wed Dec 31 17:00:00 1969
  1339. @@ -1,106 +0,0 @@
  1340. -This is Info file ./textutils.info, produced by Makeinfo-1.63 from the
  1341. -input file textutils.texi.
  1342. -
  1343. -START-INFO-DIR-ENTRY
  1344. -* Text utilities: (textutils).          GNU text utilities.
  1345. -* cat: (textutils)cat invocation.               Concatenate and write files.
  1346. -* cksum: (textutils)cksum invocation.           Print POSIX CRC checksum.
  1347. -* comm: (textutils)comm invocation.             Compare sorted files by line.
  1348. -* csplit: (textutils)csplit invocation.         Split by context.
  1349. -* cut: (textutils)cut invocation.               Print selected parts of lines.
  1350. -* expand: (textutils)expand invocation.         Convert tabs to spaces.
  1351. -* fmt: (textutils)fmt invocation.               Reformat paragraph text.
  1352. -* fold: (textutils)fold invocation.             Wrap long input lines.
  1353. -* head: (textutils)head invocation.             Output the first part of files.
  1354. -* join: (textutils)join invocation.             Join lines on a common field.
  1355. -* md5sum: (textutils)md5sum invocation.         Print or check message-digests.
  1356. -* nl: (textutils)nl invocation.                 Number lines and write files.
  1357. -* od: (textutils)od invocation.                 Dump files in octal, etc.
  1358. -* paste: (textutils)paste invocation.           Merge lines of files.
  1359. -* pr: (textutils)pr invocation.                 Paginate or columnate files.
  1360. -* sort: (textutils)sort invocation.             Sort text files.
  1361. -* split: (textutils)split invocation.           Split into fixed-size pieces.
  1362. -* sum: (textutils)sum invocation.               Print traditional checksum.
  1363. -* tac: (textutils)tac invocation.               Reverse files.
  1364. -* tail: (textutils)tail invocation.             Output the last part of files.
  1365. -* tr: (textutils)tr invocation.                 Translate characters.
  1366. -* unexpand: (textutils)unexpand invocation.     Convert spaces to tabs.
  1367. -* uniq: (textutils)uniq invocation.             Uniqify files.
  1368. -* wc: (textutils)wc invocation.                 Byte, word, and line counts.
  1369. -END-INFO-DIR-ENTRY
  1370. -
  1371. -   This file documents the GNU text utilities.
  1372. -
  1373. -   Copyright (C) 1994, 95, 96 Free Software Foundation, Inc.
  1374. -
  1375. -   Permission is granted to make and distribute verbatim copies of this
  1376. -manual provided the copyright notice and this permission notice are
  1377. -preserved on all copies.
  1378. -
  1379. -   Permission is granted to copy and distribute modified versions of
  1380. -this manual under the conditions for verbatim copying, provided that
  1381. -the entire resulting derived work is distributed under the terms of a
  1382. -permission notice identical to this one.
  1383. -
  1384. -   Permission is granted to copy and distribute translations of this
  1385. -manual into another language, under the above conditions for modified
  1386. -versions, except that this permission notice may be stated in a
  1387. -translation approved by the Foundation.
  1388. -
  1389. -
  1390. -Indirect:
  1391. -textutils.info-1: 2740
  1392. -textutils.info-2: 43036
  1393. -textutils.info-3: 84374
  1394. -
  1395. -Tag Table:
  1396. -(Indirect)
  1397. -Node: Top2740
  1398. -Node: Introduction3575
  1399. -Node: Common options4822
  1400. -Node: Output of entire files5545
  1401. -Node: cat invocation6077
  1402. -Node: tac invocation7169
  1403. -Node: nl invocation8147
  1404. -Node: od invocation11822
  1405. -Node: Formatting file contents17387
  1406. -Node: fmt invocation17837
  1407. -Node: pr invocation20541
  1408. -Node: fold invocation23958
  1409. -Node: Output of parts of files25200
  1410. -Node: head invocation25707
  1411. -Node: tail invocation27116
  1412. -Node: split invocation29498
  1413. -Node: csplit invocation31127
  1414. -Node: Summarizing files35164
  1415. -Node: wc invocation35688
  1416. -Node: sum invocation36850
  1417. -Node: cksum invocation38163
  1418. -Node: md5sum invocation39214
  1419. -Node: Operating on sorted files42614
  1420. -Node: sort invocation43036
  1421. -Node: uniq invocation54271
  1422. -Node: comm invocation55952
  1423. -Node: Operating on fields within a line56754
  1424. -Node: cut invocation57154
  1425. -Node: paste invocation58857
  1426. -Node: join invocation59700
  1427. -Node: Operating on characters63021
  1428. -Node: tr invocation63467
  1429. -Node: Character sets64584
  1430. -Node: Translating68180
  1431. -Node: Squeezing69977
  1432. -Node: Warnings in tr71214
  1433. -Node: expand invocation72347
  1434. -Node: unexpand invocation73664
  1435. -Node: Opening the software toolbox75099
  1436. -Node: Toolbox introduction75591
  1437. -Node: I/O redirection78313
  1438. -Node: The `who' command81151
  1439. -Node: The `cut' command82043
  1440. -Node: The `sort' command82924
  1441. -Node: The `uniq' command83641
  1442. -Node: Putting the tools together84374
  1443. -Node: Index96330
  1444. -
  1445. -End Tag Table
  1446. diff -rup --new-file baseline/fsf/textutils/doc/textutils.info-1 amiga/fsf/textutils/doc/textutils.info-1
  1447. --- baseline/fsf/textutils/doc/textutils.info-1    Thu Jul 11 20:14:23 1996
  1448. +++ amiga/fsf/textutils/doc/textutils.info-1    Wed Dec 31 17:00:00 1969
  1449. @@ -1,1261 +0,0 @@
  1450. -This is Info file ./textutils.info, produced by Makeinfo-1.63 from the
  1451. -input file textutils.texi.
  1452. -
  1453. -START-INFO-DIR-ENTRY
  1454. -* Text utilities: (textutils).          GNU text utilities.
  1455. -* cat: (textutils)cat invocation.               Concatenate and write files.
  1456. -* cksum: (textutils)cksum invocation.           Print POSIX CRC checksum.
  1457. -* comm: (textutils)comm invocation.             Compare sorted files by line.
  1458. -* csplit: (textutils)csplit invocation.         Split by context.
  1459. -* cut: (textutils)cut invocation.               Print selected parts of lines.
  1460. -* expand: (textutils)expand invocation.         Convert tabs to spaces.
  1461. -* fmt: (textutils)fmt invocation.               Reformat paragraph text.
  1462. -* fold: (textutils)fold invocation.             Wrap long input lines.
  1463. -* head: (textutils)head invocation.             Output the first part of files.
  1464. -* join: (textutils)join invocation.             Join lines on a common field.
  1465. -* md5sum: (textutils)md5sum invocation.         Print or check message-digests.
  1466. -* nl: (textutils)nl invocation.                 Number lines and write files.
  1467. -* od: (textutils)od invocation.                 Dump files in octal, etc.
  1468. -* paste: (textutils)paste invocation.           Merge lines of files.
  1469. -* pr: (textutils)pr invocation.                 Paginate or columnate files.
  1470. -* sort: (textutils)sort invocation.             Sort text files.
  1471. -* split: (textutils)split invocation.           Split into fixed-size pieces.
  1472. -* sum: (textutils)sum invocation.               Print traditional checksum.
  1473. -* tac: (textutils)tac invocation.               Reverse files.
  1474. -* tail: (textutils)tail invocation.             Output the last part of files.
  1475. -* tr: (textutils)tr invocation.                 Translate characters.
  1476. -* unexpand: (textutils)unexpand invocation.     Convert spaces to tabs.
  1477. -* uniq: (textutils)uniq invocation.             Uniqify files.
  1478. -* wc: (textutils)wc invocation.                 Byte, word, and line counts.
  1479. -END-INFO-DIR-ENTRY
  1480. -
  1481. -   This file documents the GNU text utilities.
  1482. -
  1483. -   Copyright (C) 1994, 95, 96 Free Software Foundation, Inc.
  1484. -
  1485. -   Permission is granted to make and distribute verbatim copies of this
  1486. -manual provided the copyright notice and this permission notice are
  1487. -preserved on all copies.
  1488. -
  1489. -   Permission is granted to copy and distribute modified versions of
  1490. -this manual under the conditions for verbatim copying, provided that
  1491. -the entire resulting derived work is distributed under the terms of a
  1492. -permission notice identical to this one.
  1493. -
  1494. -   Permission is granted to copy and distribute translations of this
  1495. -manual into another language, under the above conditions for modified
  1496. -versions, except that this permission notice may be stated in a
  1497. -translation approved by the Foundation.
  1498. -
  1499. -
  1500. -File: textutils.info,  Node: Top,  Next: Introduction,  Up: (dir)
  1501. -
  1502. -GNU text utilities
  1503. -******************
  1504. -
  1505. -   This manual minimally documents version 1.19 of the GNU text
  1506. -utilities.
  1507. -
  1508. -* Menu:
  1509. -
  1510. -* Introduction::                       Caveats, overview, and authors.
  1511. -* Common options::                     Common options.
  1512. -* Output of entire files::             cat tac nl od
  1513. -* Formatting file contents::           fmt pr fold
  1514. -* Output of parts of files::           head tail split csplit
  1515. -* Summarizing files::                  wc sum cksum md5sum
  1516. -* Operating on sorted files::          sort uniq comm
  1517. -* Operating on fields within a line::  cut paste join
  1518. -* Operating on characters::            tr expand unexpand
  1519. -* Opening the software toolbox::       The software tools philosophy.
  1520. -* Index::                              General index.
  1521. -
  1522. -
  1523. -File: textutils.info,  Node: Introduction,  Next: Common options,  Prev: Top,  Up: Top
  1524. -
  1525. -Introduction
  1526. -************
  1527. -
  1528. -   This manual is incomplete: No attempt is made to explain basic
  1529. -concepts in a way suitable for novices.  Thus, if you are interested,
  1530. -please get involved in improving this manual.  The entire GNU community
  1531. -will benefit.
  1532. -
  1533. -   The GNU text utilities are mostly compatible with the POSIX.2
  1534. -standard.
  1535. -
  1536. -   Please report bugs to `bug-gnu-utils@prep.ai.mit.edu'.  Remember to
  1537. -include the version number, machine architecture, input files, and any
  1538. -other information needed to reproduce the bug: your input, what you
  1539. -expected, what you got, and why it is wrong.  Diffs are welcome, but
  1540. -please include a description of the problem as well, since this is
  1541. -sometimes difficult to infer. *Note Bugs: (gcc)Bugs.
  1542. -
  1543. -   This manual is based on the Unix man pages in the distribution, which
  1544. -were originally written by David MacKenzie and updated by Jim Meyering.
  1545. -The original `fmt' man page was written by Ross Paterson.  Franc,ois
  1546. -Pinard did the initial conversion to Texinfo format.  Karl Berry did
  1547. -the indexing, some reorganization, and editing of the results.  Richard
  1548. -Stallman contributed his usual invaluable insights to the overall
  1549. -process.
  1550. -
  1551. -
  1552. -File: textutils.info,  Node: Common options,  Next: Output of entire files,  Prev: Introduction,  Up: Top
  1553. -
  1554. -Common options
  1555. -**************
  1556. -
  1557. -   Certain options are available in all these programs.  Rather than
  1558. -writing identical descriptions for each of the programs, they are
  1559. -described here.  (In fact, every GNU program accepts (or should accept)
  1560. -these options.)
  1561. -
  1562. -   A few of these programs take arbitrary strings as arguments.  In
  1563. -those cases, `--help' and `--version' are taken as these options only
  1564. -if there is one and exactly one command line argument.
  1565. -
  1566. -`--help'
  1567. -     Print a usage message listing all available options, then exit
  1568. -     successfully.
  1569. -
  1570. -`--version'
  1571. -     Print the version number, then exit successfully.
  1572. -
  1573. -
  1574. -File: textutils.info,  Node: Output of entire files,  Next: Formatting file contents,  Prev: Common options,  Up: Top
  1575. -
  1576. -Output of entire files
  1577. -**********************
  1578. -
  1579. -   These commands read and write entire files, possibly transforming
  1580. -them in some way.
  1581. -
  1582. -* Menu:
  1583. -
  1584. -* cat invocation::              Concatenate and write files.
  1585. -* tac invocation::              Concatenate and write files in reverse.
  1586. -* nl invocation::               Number lines and write files.
  1587. -* od invocation::               Write files in octal or other formats.
  1588. -
  1589. -
  1590. -File: textutils.info,  Node: cat invocation,  Next: tac invocation,  Up: Output of entire files
  1591. -
  1592. -`cat': Concatenate and write files
  1593. -==================================
  1594. -
  1595. -   `cat' copies each FILE (`-' means standard input), or standard input
  1596. -if none are given, to standard output.  Synopsis:
  1597. -
  1598. -     cat [OPTION] [FILE]...
  1599. -
  1600. -   The program accepts the following options.  Also see *Note Common
  1601. -options::.
  1602. -
  1603. -`-A'
  1604. -`--show-all'
  1605. -     Equivalent to `-vET'.
  1606. -
  1607. -`-b'
  1608. -`--number-nonblank'
  1609. -     Number all nonblank output lines, starting with 1.
  1610. -
  1611. -`-e'
  1612. -     Equivalent to `-vE'.
  1613. -
  1614. -`-E'
  1615. -`--show-ends'
  1616. -     Display a `$' after the end of each line.
  1617. -
  1618. -`-n'
  1619. -`--number'
  1620. -     Number all output lines, starting with 1.
  1621. -
  1622. -`-s'
  1623. -`--squeeze-blank'
  1624. -     Replace multiple adjacent blank lines with a single blank line.
  1625. -
  1626. -`-t'
  1627. -     Equivalent to `-vT'.
  1628. -
  1629. -`-T'
  1630. -`--show-tabs'
  1631. -     Display TAB characters as `^I'.
  1632. -
  1633. -`-u'
  1634. -     Ignored; for Unix compatibility.
  1635. -
  1636. -`-v'
  1637. -`--show-nonprinting'
  1638. -     Display control characters except for LFD and TAB using `^'
  1639. -     notation and precede characters that have the high bit set with
  1640. -     `M-'.
  1641. -
  1642. -
  1643. -File: textutils.info,  Node: tac invocation,  Next: nl invocation,  Prev: cat invocation,  Up: Output of entire files
  1644. -
  1645. -`tac': Concatenate and write files in reverse
  1646. -=============================================
  1647. -
  1648. -   `tac' copies each FILE (`-' means standard input), or standard input
  1649. -if none are given, to standard output, reversing the records (lines by
  1650. -default) in each separately.  Synopsis:
  1651. -
  1652. -     tac [OPTION]... [FILE]...
  1653. -
  1654. -   "Records" are separated by instances of a string (newline by
  1655. -default).  By default, this separator string is attached to the end of
  1656. -the record that it follows in the file.
  1657. -
  1658. -   The program accepts the following options.  Also see *Note Common
  1659. -options::.
  1660. -
  1661. -`-b'
  1662. -`--before'
  1663. -     The separator is attached to the beginning of the record that it
  1664. -     precedes in the file.
  1665. -
  1666. -`-r'
  1667. -`--regex'
  1668. -     Treat the separator string as a regular expression.
  1669. -
  1670. -`-s SEPARATOR'
  1671. -`--separator=SEPARATOR'
  1672. -     Use SEPARATOR as the record separator, instead of newline.
  1673. -
  1674. -
  1675. -File: textutils.info,  Node: nl invocation,  Next: od invocation,  Prev: tac invocation,  Up: Output of entire files
  1676. -
  1677. -`nl': Number lines and write files
  1678. -==================================
  1679. -
  1680. -   `nl' writes each FILE (`-' means standard input), or standard input
  1681. -if none are given, to standard output, with line numbers added to some
  1682. -or all of the lines.  Synopsis:
  1683. -
  1684. -     nl [OPTION]... [FILE]...
  1685. -
  1686. -   `nl' decomposes its input into (logical) pages; by default, the line
  1687. -number is reset to 1 at the top of each logical page.  `nl' treats all
  1688. -of the input files as a single document; it does not reset line numbers
  1689. -or logical pages between files.
  1690. -
  1691. -   A logical page consists of three sections: header, body, and footer.
  1692. -Any of the sections can be empty.  Each can be numbered in a different
  1693. -style from the others.
  1694. -
  1695. -   The beginnings of the sections of logical pages are indicated in the
  1696. -input file by a line containing exactly one of these delimiter strings:
  1697. -
  1698. -`\:\:\:'
  1699. -     start of header;
  1700. -
  1701. -`\:\:'
  1702. -     start of body;
  1703. -
  1704. -`\:'
  1705. -     start of footer.
  1706. -
  1707. -   The two characters from which these strings are made can be changed
  1708. -from `\' and `:' via options (see below), but the pattern and length of
  1709. -each string cannot be changed.
  1710. -
  1711. -   A section delimiter is replaced by an empty line on output.  Any text
  1712. -that comes before the first section delimiter string in the input file
  1713. -is considered to be part of a body section, so `nl' treats a file that
  1714. -contains no section delimiters as a single body section.
  1715. -
  1716. -   The program accepts the following options.  Also see *Note Common
  1717. -options::.
  1718. -
  1719. -`-b STYLE'
  1720. -`--body-numbering=STYLE'
  1721. -     Select the numbering style for lines in the body section of each
  1722. -     logical page.  When a line is not numbered, the current line number
  1723. -     is not incremented, but the line number separator character is
  1724. -     still prepended to the line.  The styles are:
  1725. -
  1726. -    `a'
  1727. -          number all lines,
  1728. -
  1729. -    `t'
  1730. -          number only nonempty lines (default for body),
  1731. -
  1732. -    `n'
  1733. -          do not number lines (default for header and footer),
  1734. -
  1735. -    `pREGEXP'
  1736. -          number only lines that contain a match for REGEXP.
  1737. -
  1738. -`-d CD'
  1739. -`--section-delimiter=CD'
  1740. -     Set the section delimiter characters to CD; default is `\:'. If
  1741. -     only C is given, the second remains `:'.  (Remember to protect `\'
  1742. -     or other metacharacters from shell expansion with quotes or extra
  1743. -     backslashes.)
  1744. -
  1745. -`-f STYLE'
  1746. -`--footer-numbering=STYLE'
  1747. -     Analogous to `--body-numbering'.
  1748. -
  1749. -`-h STYLE'
  1750. -`--header-numbering=STYLE'
  1751. -     Analogous to `--body-numbering'.
  1752. -
  1753. -`-i NUMBER'
  1754. -`--page-increment=NUMBER'
  1755. -     Increment line numbers by NUMBER (default 1).
  1756. -
  1757. -`-l NUMBER'
  1758. -`--join-blank-lines=NUMBER'
  1759. -     Consider NUMBER (default 1) consecutive empty lines to be one
  1760. -     logical line for numbering, and only number the last one.  Where
  1761. -     fewer than NUMBER consecutive empty lines occur, do not number
  1762. -     them.  An empty line is one that contains no characters, not even
  1763. -     spaces or tabs.
  1764. -
  1765. -`-n FORMAT'
  1766. -`--number-format=FORMAT'
  1767. -     Select the line numbering format (default is `rn'):
  1768. -
  1769. -    `ln'
  1770. -          left justified, no leading zeros;
  1771. -
  1772. -    `rn'
  1773. -          right justified, no leading zeros;
  1774. -
  1775. -    `rz'
  1776. -          right justified, leading zeros.
  1777. -
  1778. -`-p'
  1779. -`--no-renumber'
  1780. -     Do not reset the line number at the start of a logical page.
  1781. -
  1782. -`-s STRING'
  1783. -`--number-separator=STRING'
  1784. -     Separate the line number from the text line in the output with
  1785. -     STRING (default is TAB).
  1786. -
  1787. -`-v NUMBER'
  1788. -`--starting-line-number=NUMBER'
  1789. -     Set the initial line number on each logical page to NUMBER
  1790. -     (default 1).
  1791. -
  1792. -`-w NUMBER'
  1793. -`--number-width=NUMBER'
  1794. -     Use NUMBER characters for line numbers (default 6).
  1795. -
  1796. -
  1797. -File: textutils.info,  Node: od invocation,  Prev: nl invocation,  Up: Output of entire files
  1798. -
  1799. -`od': Write files in octal or other formats
  1800. -===========================================
  1801. -
  1802. -   `od' writes an unambiguous representation of each FILE (`-' means
  1803. -standard input), or standard input if none are given.  Synopsis:
  1804. -
  1805. -     od [OPTION]... [FILE]...
  1806. -     od -C [FILE] [[+]OFFSET [[+]LABEL]]
  1807. -
  1808. -   Each line of output consists of the offset in the input, followed by
  1809. -groups of data from the file. By default, `od' prints the offset in
  1810. -octal, and each group of file data is two bytes of input printed as a
  1811. -single octal number.
  1812. -
  1813. -   The program accepts the following options.  Also see *Note Common
  1814. -options::.
  1815. -
  1816. -`-A RADIX'
  1817. -`--address-radix=RADIX'
  1818. -     Select the base in which file offsets are printed.  RADIX can be
  1819. -     one of the following:
  1820. -
  1821. -    `d'
  1822. -          decimal;
  1823. -
  1824. -    `o'
  1825. -          octal;
  1826. -
  1827. -    `x'
  1828. -          hexadecimal;
  1829. -
  1830. -    `n'
  1831. -          none (do not print offsets).
  1832. -
  1833. -     The default is octal.
  1834. -
  1835. -`-j BYTES'
  1836. -`--skip-bytes=BYTES'
  1837. -     Skip BYTES input bytes before formatting and writing.  If BYTES
  1838. -     begins with `0x' or `0X', it is interpreted in hexadecimal;
  1839. -     otherwise, if it begins with `0', in octal; otherwise, in decimal.
  1840. -     Appending `b' multiplies BYTES by 512, `k' by 1024, and `m' by
  1841. -     1048576.
  1842. -
  1843. -`-N BYTES'
  1844. -`--read-bytes=BYTES'
  1845. -     Output at most BYTES bytes of the input.  Prefixes and suffixes on
  1846. -     `bytes' are interpreted as for the `-j' option.
  1847. -
  1848. -`-s [N]'
  1849. -`--strings[=N]'
  1850. -     Instead of the normal output, output only "string constants": at
  1851. -     least N (3 by default) consecutive ASCII graphic characters,
  1852. -     followed by a null (zero) byte.
  1853. -
  1854. -`-t TYPE'
  1855. -`--format=TYPE'
  1856. -     Select the format in which to output the file data.  TYPE is a
  1857. -     string of one or more of the below type indicator characters.  If
  1858. -     you include more than one type indicator character in a single TYPE
  1859. -     string, or use this option more than once, `od' writes one copy of
  1860. -     each output line using each of the data types that you specified,
  1861. -     in the order that you specified.
  1862. -
  1863. -    `a'
  1864. -          named character,
  1865. -
  1866. -    `c'
  1867. -          ASCII character or backslash escape,
  1868. -
  1869. -    `d'
  1870. -          signed decimal,
  1871. -
  1872. -    `f'
  1873. -          floating point,
  1874. -
  1875. -    `o'
  1876. -          octal,
  1877. -
  1878. -    `u'
  1879. -          unsigned decimal,
  1880. -
  1881. -    `x'
  1882. -          hexadecimal.
  1883. -
  1884. -     The type `a' outputs things like `sp' for space, `nl' for newline,
  1885. -     and `nul' for a null (zero) byte.  Type `c' outputs ` ', `\n', and
  1886. -     `\0', respectively.
  1887. -
  1888. -     Except for types `a' and `c', you can specify the number of bytes
  1889. -     to use in interpreting each number in the given data type by
  1890. -     following the type indicator character with a decimal integer.
  1891. -     Alternately, you can specify the size of one of the C compiler's
  1892. -     built-in data types by following the type indicator character with
  1893. -     one of the following characters.  For integers (`d', `o', `u',
  1894. -     `x'):
  1895. -
  1896. -    `C'
  1897. -          char,
  1898. -
  1899. -    `S'
  1900. -          short,
  1901. -
  1902. -    `I'
  1903. -          int,
  1904. -
  1905. -    `L'
  1906. -          long.
  1907. -
  1908. -     For floating point (`f'):
  1909. -
  1910. -    F
  1911. -          float,
  1912. -
  1913. -    D
  1914. -          double,
  1915. -
  1916. -    L
  1917. -          long double.
  1918. -
  1919. -`-v'
  1920. -`--output-duplicates'
  1921. -     Output consecutive lines that are identical.  By default, when two
  1922. -     or more consecutive output lines would be identical, `od' outputs
  1923. -     only the first line, and puts just an asterisk on the following
  1924. -     line to indicate the elision.
  1925. -
  1926. -`-w[N]'
  1927. -`--width[=N]'
  1928. -     Dump `n' input bytes per output line.  This must be a multiple of
  1929. -     the least common multiple of the sizes associated with the
  1930. -     specified output types.  If N is omitted, the default is 32.  If
  1931. -     this option is not given at all, the default is 16.
  1932. -
  1933. -   The next several options map the old, pre-POSIX format specification
  1934. -options to the corresponding POSIX format specs.  GNU `od' accepts any
  1935. -combination of old- and new-style options.  Format specification
  1936. -options accumulate.
  1937. -
  1938. -`-a'
  1939. -     Output as named characters.  Equivalent to `-ta'.
  1940. -
  1941. -`-b'
  1942. -     Output as octal bytes.  Equivalent to `-toC'.
  1943. -
  1944. -`-c'
  1945. -     Output as ASCII characters or backslash escapes.  Equivalent to
  1946. -     `-tc'.
  1947. -
  1948. -`-d'
  1949. -     Output as unsigned decimal shorts.  Equivalent to `-tu2'.
  1950. -
  1951. -`-f'
  1952. -     Output as floats.  Equivalent to `-tfF'.
  1953. -
  1954. -`-h'
  1955. -     Output as hexadecimal shorts.  Equivalent to `-tx2'.
  1956. -
  1957. -`-i'
  1958. -     Output as decimal shorts.  Equivalent to `-td2'.
  1959. -
  1960. -`-l'
  1961. -     Output as decimal longs.  Equivalent to `-td4'.
  1962. -
  1963. -`-o'
  1964. -     Output as octal shorts.  Equivalent to `-to2'.
  1965. -
  1966. -`-x'
  1967. -     Output as hexadecimal shorts.  Equivalent to `-tx2'.
  1968. -
  1969. -`-C'
  1970. -`--traditional'
  1971. -     Recognize the pre-POSIX non-option arguments that traditional `od'
  1972. -     accepted.  The following syntax:
  1973. -
  1974. -          od --traditional [FILE] [[+]OFFSET[.][b] [[+]LABEL[.][b]]]
  1975. -
  1976. -     can be used to specify at most one file and optional arguments
  1977. -     specifying an offset and a pseudo-start address, LABEL.  By
  1978. -     default, OFFSET is interpreted as an octal number specifying how
  1979. -     many input bytes to skip before formatting and writing.  The
  1980. -     optional trailing decimal point forces the interpretation of
  1981. -     OFFSET as a decimal number.  If no decimal is specified and the
  1982. -     offset begins with `0x' or `0X' it is interpreted as a hexadecimal
  1983. -     number.  If there is a trailing `b', the number of bytes skipped
  1984. -     will be OFFSET multiplied by 512.  The LABEL argument is
  1985. -     interpreted just like OFFSET, but it specifies an initial
  1986. -     pseudo-address.  The pseudo-addresses are displayed in parentheses
  1987. -     following any normal address.
  1988. -
  1989. -
  1990. -File: textutils.info,  Node: Formatting file contents,  Next: Output of parts of files,  Prev: Output of entire files,  Up: Top
  1991. -
  1992. -Formatting file contents
  1993. -************************
  1994. -
  1995. -   These commands reformat the contents of files.
  1996. -
  1997. -* Menu:
  1998. -
  1999. -* fmt invocation::              Reformat paragraph text.
  2000. -* pr invocation::               Paginate or columnate files for printing.
  2001. -* fold invocation::             Wrap input lines to fit in specified width.
  2002. -
  2003. -
  2004. -File: textutils.info,  Node: fmt invocation,  Next: pr invocation,  Up: Formatting file contents
  2005. -
  2006. -`fmt': Reformat paragraph text
  2007. -==============================
  2008. -
  2009. -   `fmt' fills and joins lines to produce output lines of (at most) a
  2010. -given number of characters (75 by default).  Synopsis:
  2011. -
  2012. -     fmt [OPTION]... [FILE]...
  2013. -
  2014. -   `fmt' reads from the specified FILE arguments (or standard input if
  2015. -none are given), and writes to standard output.
  2016. -
  2017. -   By default, blank lines, spaces between words, and indentation are
  2018. -preserved in the output; successive input lines with different
  2019. -indentation are not joined; tabs are expanded on input and introduced on
  2020. -output.
  2021. -
  2022. -   `fmt' prefers breaking lines at the end of a sentence, and tries to
  2023. -avoid line breaks after the first word of a sentence or before the last
  2024. -word of a sentence.  A "sentence break" is defined as either the end of
  2025. -a paragraph or a word ending in any of `.?!', followed by two spaces or
  2026. -end of line, ignoring any intervening parentheses or quotes.  Like TeX,
  2027. -`fmt' reads entire "paragraphs" before choosing line breaks; the
  2028. -algorithm is a variant of that in "Breaking Paragraphs Into Lines"
  2029. -(Donald E. Knuth and Michael F. Plass, `Software--Practice and
  2030. -Experience', 11 (1981), 1119-1184).
  2031. -
  2032. -   The program accepts the following options.  Also see *Note Common
  2033. -options::.
  2034. -
  2035. -`-c'
  2036. -`--crown-margin'
  2037. -     "Crown margin" mode: preserve the indentation of the first two
  2038. -     lines within a paragraph, and align the left margin of each
  2039. -     subsequent line with that of the second line.
  2040. -
  2041. -`-t'
  2042. -`--tagged-paragraph'
  2043. -     "Tagged paragraph" mode: like crown margin mode, except that if
  2044. -     indentation of the first line of a paragraph is the same as the
  2045. -     indentation of the second, the first line is treated as a one-line
  2046. -     paragraph.
  2047. -
  2048. -`-s'
  2049. -`--split-only'
  2050. -     Split lines only.  Do not join short lines to form longer ones.
  2051. -     This prevents sample lines of code, and other such "formatted"
  2052. -     text from being unduly combined.
  2053. -
  2054. -`-u'
  2055. -`--uniform-spacing'
  2056. -     Uniform spacing.  Reduce spacing between words to one space, and
  2057. -     spacing between sentences to two spaces.
  2058. -
  2059. -`-WIDTH'
  2060. -`-w WIDTH'
  2061. -`--width=WIDTH'
  2062. -     Fill output lines up to WIDTH characters (default 75).  `fmt'
  2063. -     initially tries to make lines about 7% shorter than this, to give
  2064. -     it room to balance line lengths.
  2065. -
  2066. -`-p PREFIX'
  2067. -`--prefix=PREFIX'
  2068. -     Only lines beginning with PREFIX (possibly preceded by whitespace)
  2069. -     are subject to formatting. The prefix and any preceding whitespace
  2070. -     are stripped for the formatting and then re-attached to each
  2071. -     formatted output line.  One use is to format certain kinds of
  2072. -     program comments, while leaving the code unchanged.
  2073. -
  2074. -
  2075. -File: textutils.info,  Node: pr invocation,  Next: fold invocation,  Prev: fmt invocation,  Up: Formatting file contents
  2076. -
  2077. -`pr': Paginate or columnate files for printing
  2078. -==============================================
  2079. -
  2080. -   `pr' writes each FILE (`-' means standard input), or standard input
  2081. -if none are given, to standard output, paginating and optionally
  2082. -outputting in multicolumn format.  Synopsis:
  2083. -
  2084. -     pr [OPTION]... [FILE]...
  2085. -
  2086. -   By default, a 5-line header is printed: two blank lines; a line with
  2087. -the date, the file name, and the page count; and two more blank lines.
  2088. -A five line footer (entirely) is also printed.
  2089. -
  2090. -   Form feeds in the input cause page breaks in the output.
  2091. -
  2092. -   The program accepts the following options.  Also see *Note Common
  2093. -options::.
  2094. -
  2095. -`+PAGE'
  2096. -     Begin printing with page PAGE.
  2097. -
  2098. -`-COLUMN'
  2099. -     Produce COLUMN-column output and print columns down.  The column
  2100. -     width is automatically decreased as COLUMN increases; unless you
  2101. -     use the `-w' option to increase the page width as well, this option
  2102. -     might well cause some input to be truncated.
  2103. -
  2104. -`-a'
  2105. -     Print columns across rather than down.
  2106. -
  2107. -`-b'
  2108. -     Balance columns on the last page.
  2109. -
  2110. -`-c'
  2111. -     Print control characters using hat notation (e.g., `^G'); print
  2112. -     other unprintable characters in octal backslash notation.  By
  2113. -     default, unprintable characters are not changed.
  2114. -
  2115. -`-d'
  2116. -     Double space the output.
  2117. -
  2118. -`-e[IN-TABCHAR[IN-TABWIDTH]]'
  2119. -     Expand tabs to spaces on input.  Optional argument IN-TABCHAR is
  2120. -     the input tab character (default is TAB).  Second optional
  2121. -     argument IN-TABWIDTH is the input tab character's width (default
  2122. -     is 8).
  2123. -
  2124. -`-f'
  2125. -`-F'
  2126. -     Use a formfeed instead of newlines to separate output pages.
  2127. -
  2128. -`-h HEADER'
  2129. -     Replace the file name in the header with the string HEADER.
  2130. -
  2131. -`-i[OUT-TABCHAR[OUT-TABWIDTH]]'
  2132. -     Replace spaces with tabs on output.  Optional argument OUT-TABCHAR
  2133. -     is the output tab character (default is TAB).  Second optional
  2134. -     argument OUT-TABWIDTH is the output tab character's width (default
  2135. -     is 8).
  2136. -
  2137. -`-l N'
  2138. -     Set the page length to N (default 66) lines.  If N is less than
  2139. -     10, the headers and footers are omitted, as if the `-t' option had
  2140. -     been given.
  2141. -
  2142. -`-m'
  2143. -     Print all files in parallel, one in each column.
  2144. -
  2145. -`-n[NUMBER-SEPARATOR[DIGITS]]'
  2146. -     Precede each column with a line number; with parallel files (`-m'),
  2147. -     precede each line with a line number.  Optional argument
  2148. -     NUMBER-SEPARATOR is the character to print after each number
  2149. -     (default is TAB).  Optional argument DIGITS is the number of
  2150. -     digits per line number (default is 5).
  2151. -
  2152. -`-o N'
  2153. -     Indent each line with N (default is zero) spaces wide, i.e., set
  2154. -     the left margin.  The total page width is `n' plus the width set
  2155. -     with the `-w' option.
  2156. -
  2157. -`-r'
  2158. -     Do not print a warning message when an argument FILE cannot be
  2159. -     opened.  (The exit status will still be nonzero, however.)
  2160. -
  2161. -`-s[C]'
  2162. -     Separate columns by the single character C.  If C is omitted, the
  2163. -     default is space; if this option is omitted altogether, the
  2164. -     default is TAB.
  2165. -
  2166. -`-t'
  2167. -     Do not print the usual 5-line header and the 5-line footer on each
  2168. -     page, and do not fill out the bottoms of pages (with blank lines or
  2169. -     formfeeds).
  2170. -
  2171. -`-v'
  2172. -     Print unprintable characters in octal backslash notation.
  2173. -
  2174. -`-w N'
  2175. -     Set the page width to N (default is 72) columns.
  2176. -
  2177. -
  2178. -File: textutils.info,  Node: fold invocation,  Prev: pr invocation,  Up: Formatting file contents
  2179. -
  2180. -`fold': Wrap input lines to fit in specified width
  2181. -==================================================
  2182. -
  2183. -   `fold' writes each FILE (`-' means standard input), or standard
  2184. -input if none are given, to standard output, breaking long lines.
  2185. -Synopsis:
  2186. -
  2187. -     fold [OPTION]... [FILE]...
  2188. -
  2189. -   By default, `fold' breaks lines wider than 80 columns. The output is
  2190. -split into as many lines as necessary.
  2191. -
  2192. -   `fold' counts screen columns by default; thus, a tab may count more
  2193. -than one column, backspace decreases the column count, and carriage
  2194. -return sets the column to zero.
  2195. -
  2196. -   The program accepts the following options.  Also see *Note Common
  2197. -options::.
  2198. -
  2199. -`-b'
  2200. -`--bytes'
  2201. -     Count bytes rather than columns, so that tabs, backspaces, and
  2202. -     carriage returns are each counted as taking up one column, just
  2203. -     like other characters.
  2204. -
  2205. -`-s'
  2206. -`--spaces'
  2207. -     Break at word boundaries: the line is broken after the last blank
  2208. -     before the maximum line length.  If the line contains no such
  2209. -     blanks, the line is broken at the maximum line length as usual.
  2210. -
  2211. -`-w WIDTH'
  2212. -`--width=WIDTH'
  2213. -     Use a maximum line length of WIDTH columns instead of 80.
  2214. -
  2215. -
  2216. -File: textutils.info,  Node: Output of parts of files,  Next: Summarizing files,  Prev: Formatting file contents,  Up: Top
  2217. -
  2218. -Output of parts of files
  2219. -************************
  2220. -
  2221. -   These commands output pieces of the input.
  2222. -
  2223. -* Menu:
  2224. -
  2225. -* head invocation::             Output the first part of files.
  2226. -* tail invocation::             Output the last part of files.
  2227. -* split invocation::            Split a file into fixed-size pieces.
  2228. -* csplit invocation::           Split a file into context-determined pieces.
  2229. -
  2230. -
  2231. -File: textutils.info,  Node: head invocation,  Next: tail invocation,  Up: Output of parts of files
  2232. -
  2233. -`head': Output the first part of files
  2234. -======================================
  2235. -
  2236. -   `head' prints the first part (10 lines by default) of each FILE; it
  2237. -reads from standard input if no files are given or when given a FILE of
  2238. -`-'.  Synopses:
  2239. -
  2240. -     head [OPTION]... [FILE]...
  2241. -     head -NUMBER [OPTION]... [FILE]...
  2242. -
  2243. -   If more than one FILE is specified, `head' prints a one-line header
  2244. -consisting of
  2245. -     ==> FILE NAME <==
  2246. -
  2247. -before the output for each FILE.
  2248. -
  2249. -   `head' accepts two option formats: the new one, in which numbers are
  2250. -arguments to the options (`-q -n 1'), and the old one, in which the
  2251. -number precedes any option letters (`-1q').
  2252. -
  2253. -   The program accepts the following options.  Also see *Note Common
  2254. -options::.
  2255. -
  2256. -`-COUNTOPTIONS'
  2257. -     This option is only recognized if it is specified first.  COUNT is
  2258. -     a decimal number optionally followed by a size letter (`b', `k',
  2259. -     `m') as in `-c', or `l' to mean count by lines, or other option
  2260. -     letters (`cqv').
  2261. -
  2262. -`-c BYTES'
  2263. -`--bytes=BYTES'
  2264. -     Print the first BYTES bytes, instead of initial lines.  Appending
  2265. -     `b' multiplies BYTES by 512, `k' by 1024, and `m' by 1048576.
  2266. -
  2267. -`-n N'
  2268. -`--lines=N'
  2269. -     Output the first N lines.
  2270. -
  2271. -`-q'
  2272. -`--quiet'
  2273. -`--silent'
  2274. -     Never print file name headers.
  2275. -
  2276. -`-v'
  2277. -`--verbose'
  2278. -     Always print file name headers.
  2279. -
  2280. -
  2281. -File: textutils.info,  Node: tail invocation,  Next: split invocation,  Prev: head invocation,  Up: Output of parts of files
  2282. -
  2283. -`tail': Output the last part of files
  2284. -=====================================
  2285. -
  2286. -   `tail' prints the last part (10 lines by default) of each FILE; it
  2287. -reads from standard input if no files are given or when given a FILE of
  2288. -`-'.  Synopses:
  2289. -
  2290. -     tail [OPTION]... [FILE]...
  2291. -     tail -NUMBER [OPTION]... [FILE]...
  2292. -     tail +NUMBER [OPTION]... [FILE]...
  2293. -
  2294. -   If more than one FILE is specified, `tail' prints a one-line header
  2295. -consisting of
  2296. -     ==> FILE NAME <==
  2297. -
  2298. -before the output for each FILE.
  2299. -
  2300. -   GNU `tail' can output any amount of data (some other versions of
  2301. -`tail' cannot).  It also has no `-r' option (print in reverse), since
  2302. -reversing a file is really a different job from printing the end of a
  2303. -file; BSD `tail' (which is the one with `-r') can only reverse files
  2304. -that are at most as large as its buffer, which is typically 32k.  A
  2305. -more reliable and versatile way to reverse files is the GNU `tac'
  2306. -command.
  2307. -
  2308. -   `tail' accepts two option formats: the new one, in which numbers are
  2309. -arguments to the options (`-n 1'), and the old one, in which the number
  2310. -precedes any option letters (`-1' or `+1').
  2311. -
  2312. -   If any option-argument is a number N starting with a `+', `tail'
  2313. -begins printing with the Nth item from the start of each file, instead
  2314. -of from the end.
  2315. -
  2316. -   The program accepts the following options.  Also see *Note Common
  2317. -options::.
  2318. -
  2319. -`-COUNT'
  2320. -`+COUNT'
  2321. -     This option is only recognized if it is specified first.  COUNT is
  2322. -     a decimal number optionally followed by a size letter (`b', `k',
  2323. -     `m') as in `-c', or `l' to mean count by lines, or other option
  2324. -     letters (`cfqv').
  2325. -
  2326. -`-c BYTES'
  2327. -`--bytes=BYTES'
  2328. -     Output the last BYTES bytes, instead of final lines.  Appending
  2329. -     `b' multiplies BYTES by 512, `k' by 1024, and `m' by 1048576.
  2330. -
  2331. -`-f'
  2332. -`--follow'
  2333. -     Loop forever trying to read more characters at the end of the file,
  2334. -     presumably because the file is growing.  Ignored if reading from a
  2335. -     pipe.  If more than one file is given, `tail' prints a header
  2336. -     whenever it gets output from a different file, to indicate which
  2337. -     file that output is from.
  2338. -
  2339. -`-n N'
  2340. -`--lines=N'
  2341. -     Output the last N lines.
  2342. -
  2343. -`-q'
  2344. -`-quiet'
  2345. -`--silent'
  2346. -     Never print file name headers.
  2347. -
  2348. -`-v'
  2349. -`--verbose'
  2350. -     Always print file name headers.
  2351. -
  2352. -
  2353. -File: textutils.info,  Node: split invocation,  Next: csplit invocation,  Prev: tail invocation,  Up: Output of parts of files
  2354. -
  2355. -`split': Split a file into fixed-size pieces
  2356. -============================================
  2357. -
  2358. -   `split' creates output files containing consecutive sections of
  2359. -INPUT (standard input if none is given or INPUT is `-').  Synopsis:
  2360. -
  2361. -     split [OPTION] [INPUT [PREFIX]]
  2362. -
  2363. -   By default, `split' puts 1000 lines of INPUT (or whatever is left
  2364. -over for the last section), into each output file.
  2365. -
  2366. -   The output files' names consist of PREFIX (`x' by default) followed
  2367. -by a group of letters `aa', `ab', and so on, such that concatenating
  2368. -the output files in sorted order by file name produces the original
  2369. -input file.  (If more than 676 output files are required, `split' uses
  2370. -`zaa', `zab', etc.)
  2371. -
  2372. -   The program accepts the following options.  Also see *Note Common
  2373. -options::.
  2374. -
  2375. -`-LINES'
  2376. -`-l LINES'
  2377. -`--lines=LINES'
  2378. -     Put LINES lines of INPUT into each output file.
  2379. -
  2380. -`-b BYTES'
  2381. -`--bytes=BYTES'
  2382. -     Put the first BYTES bytes of INPUT into each output file.
  2383. -     Appending `b' multiplies BYTES by 512, `k' by 1024, and `m' by
  2384. -     1048576.
  2385. -
  2386. -`-C BYTES'
  2387. -`--line-bytes=BYTES'
  2388. -     Put into each output file as many complete lines of INPUT as
  2389. -     possible without exceeding BYTES bytes.  For lines longer than
  2390. -     BYTES bytes, put BYTES bytes into each output file until less than
  2391. -     BYTES bytes of the line are left, then continue normally.  BYTES
  2392. -     has the same format as for the `--bytes' option.
  2393. -
  2394. -`--verbose=BYTES'
  2395. -     Write a diagnostic to standard error just before each output file
  2396. -     is opened.
  2397. -
  2398. -
  2399. -File: textutils.info,  Node: csplit invocation,  Prev: split invocation,  Up: Output of parts of files
  2400. -
  2401. -`csplit': Split a file into context-determined pieces
  2402. -=====================================================
  2403. -
  2404. -   `csplit' creates zero or more output files containing sections of
  2405. -INPUT (standard input if INPUT is `-').  Synopsis:
  2406. -
  2407. -     csplit [OPTION]... INPUT PATTERN...
  2408. -
  2409. -   The contents of the output files are determined by the PATTERN
  2410. -arguments, as detailed below.  An error occurs if a PATTERN argument
  2411. -refers to a nonexistent line of the input file (e.g., if no remaining
  2412. -line matches a given regular expression).  After every PATTERN has been
  2413. -matched, any remaining input is copied into one last output file.
  2414. -
  2415. -   By default, `csplit' prints the number of bytes written to each
  2416. -output file after it has been created.
  2417. -
  2418. -   The types of pattern arguments are:
  2419. -
  2420. -`N'
  2421. -     Create an output file containing the input up to but not including
  2422. -     line N (a positive integer).  If followed by a repeat count, also
  2423. -     create an output file containing the next LINE lines of the input
  2424. -     file once for each repeat.
  2425. -
  2426. -`/REGEXP/[OFFSET]'
  2427. -     Create an output file containing the current line up to (but not
  2428. -     including) the next line of the input file that contains a match
  2429. -     for REGEXP.  The optional OFFSET is a `+' or `-' followed by a
  2430. -     positive integer.  If it is given, the input up to the matching
  2431. -     line plus or minus OFFSET is put into the output file, and the
  2432. -     line after that begins the next section of input.
  2433. -
  2434. -`%REGEXP%[OFFSET]'
  2435. -     Like the previous type, except that it does not create an output
  2436. -     file, so that section of the input file is effectively ignored.
  2437. -
  2438. -`{REPEAT-COUNT}'
  2439. -     Repeat the previous pattern REPEAT-COUNT additional times.
  2440. -     REPEAT-COUNT can either be a positive integer or an asterisk,
  2441. -     meaning repeat as many times as necessary until the input is
  2442. -     exhausted.
  2443. -
  2444. -   The output files' names consist of a prefix (`xx' by default)
  2445. -followed by a suffix.  By default, the suffix is an ascending sequence
  2446. -of two-digit decimal numbers from `00' and up to `99'.  In any case,
  2447. -concatenating the output files in sorted order by filename produces the
  2448. -original input file.
  2449. -
  2450. -   By default, if `csplit' encounters an error or receives a hangup,
  2451. -interrupt, quit, or terminate signal, it removes any output files that
  2452. -it has created so far before it exits.
  2453. -
  2454. -   The program accepts the following options.  Also see *Note Common
  2455. -options::.
  2456. -
  2457. -`-f PREFIX'
  2458. -`--prefix=PREFIX'
  2459. -     Use PREFIX as the output file name prefix.
  2460. -
  2461. -`-b SUFFIX'
  2462. -`--suffix=SUFFIX'
  2463. -     Use SUFFIX as the output file name suffix.  When this option is
  2464. -     specified, the suffix string must include exactly one
  2465. -     `printf(3)'-style conversion specification, possibly including
  2466. -     format specification flags, a field width, a precision
  2467. -     specifications, or all of these kinds of modifiers.  The format
  2468. -     letter must convert a binary integer argument to readable form;
  2469. -     thus, only `d', `i', `u', `o', `x', and `X' conversions are
  2470. -     allowed.  The entire SUFFIX is given (with the current output file
  2471. -     number) to `sprintf(3)' to form the file name suffixes for each of
  2472. -     the individual output files in turn.  If this option is used, the
  2473. -     `--digits' option is ignored.
  2474. -
  2475. -`-n DIGITS'
  2476. -`--digits=DIGITS'
  2477. -     Use output file names containing numbers that are DIGITS digits
  2478. -     long instead of the default 2.
  2479. -
  2480. -`-k'
  2481. -`--keep-files'
  2482. -     Do not remove output files when errors are encountered.
  2483. -
  2484. -`-z'
  2485. -`--elide-empty-files'
  2486. -     Suppress the generation of zero-length output files.  (In cases
  2487. -     where the section delimiters of the input file are supposed to
  2488. -     mark the first lines of each of the sections, the first output
  2489. -     file will generally be a zero-length file unless you use this
  2490. -     option.)  The output file sequence numbers always run
  2491. -     consecutively starting from 0, even when this option is specified.
  2492. -
  2493. -`-s'
  2494. -`-q'
  2495. -`--silent'
  2496. -`--quiet'
  2497. -     Do not print counts of output file sizes.
  2498. -
  2499. -
  2500. -File: textutils.info,  Node: Summarizing files,  Next: Operating on sorted files,  Prev: Output of parts of files,  Up: Top
  2501. -
  2502. -Summarizing files
  2503. -*****************
  2504. -
  2505. -   These commands generate just a few numbers representing entire
  2506. -contents of files.
  2507. -
  2508. -* Menu:
  2509. -
  2510. -* wc invocation::               Print byte, word, and line counts.
  2511. -* sum invocation::              Print checksum and block counts.
  2512. -* cksum invocation::            Print CRC checksum and byte counts.
  2513. -* md5sum invocation::           Print or check message-digests.
  2514. -
  2515. -
  2516. -File: textutils.info,  Node: wc invocation,  Next: sum invocation,  Up: Summarizing files
  2517. -
  2518. -`wc': Print byte, word, and line counts
  2519. -=======================================
  2520. -
  2521. -   `wc' counts the number of bytes, whitespace-separated words, and
  2522. -newlines in each given FILE, or standard input if none are given or for
  2523. -a FILE of `-'.  Synopsis:
  2524. -
  2525. -     wc [OPTION]... [FILE]...
  2526. -
  2527. -   `wc' prints one line of counts for each file, and if the file was
  2528. -given as an argument, it prints the file name following the counts.  If
  2529. -more than one FILE is given, `wc' prints a final line containing the
  2530. -cumulative counts, with the file name `total'.  The counts are printed
  2531. -in this order: newlines, words, bytes.
  2532. -
  2533. -   By default, `wc' prints all three counts.  Options can specify that
  2534. -only certain counts be printed.  Options do not undo others previously
  2535. -given, so
  2536. -
  2537. -     wc --bytes --words
  2538. -
  2539. -prints both the byte counts and the word counts.
  2540. -
  2541. -   The program accepts the following options.  Also see *Note Common
  2542. -options::.
  2543. -
  2544. -`-c'
  2545. -`--bytes'
  2546. -`--chars'
  2547. -     Print only the byte counts.
  2548. -
  2549. -`-w'
  2550. -`--words'
  2551. -     Print only the word counts.
  2552. -
  2553. -`-l'
  2554. -`--lines'
  2555. -     Print only the newline counts.
  2556. -
  2557. -
  2558. -File: textutils.info,  Node: sum invocation,  Next: cksum invocation,  Prev: wc invocation,  Up: Summarizing files
  2559. -
  2560. -`sum': Print checksum and block counts
  2561. -======================================
  2562. -
  2563. -   `sum' computes a 16-bit checksum for each given FILE, or standard
  2564. -input if none are given or for a FILE of `-'.  Synopsis:
  2565. -
  2566. -     sum [OPTION]... [FILE]...
  2567. -
  2568. -   `sum' prints the checksum for each FILE followed by the number of
  2569. -blocks in the file (rounded up).  If more than one FILE is given, file
  2570. -names are also printed (by default).  (With the `--sysv' option,
  2571. -corresponding file name are printed when there is at least one file
  2572. -argument.)
  2573. -
  2574. -   By default, GNU `sum' computes checksums using an algorithm
  2575. -compatible with BSD `sum' and prints file sizes in units of 1024-byte
  2576. -blocks.
  2577. -
  2578. -   The program accepts the following options.  Also see *Note Common
  2579. -options::.
  2580. -
  2581. -`-r'
  2582. -     Use the default (BSD compatible) algorithm.  This option is
  2583. -     included for compatibility with the System V `sum'.  Unless `-s'
  2584. -     was also given, it has no effect.
  2585. -
  2586. -`-s'
  2587. -`--sysv'
  2588. -     Compute checksums using an algorithm compatible with System V
  2589. -     `sum''s default, and print file sizes in units of 512-byte blocks.
  2590. -
  2591. -   `sum' is provided for compatibility; the `cksum' program (see next
  2592. -section) is preferable in new applications.
  2593. -
  2594. -
  2595. -File: textutils.info,  Node: cksum invocation,  Next: md5sum invocation,  Prev: sum invocation,  Up: Summarizing files
  2596. -
  2597. -`cksum': Print CRC checksum and byte counts
  2598. -===========================================
  2599. -
  2600. -   `cksum' computes a cyclic redundancy check (CRC) checksum for each
  2601. -given FILE, or standard input if none are given or for a FILE of `-'.
  2602. -Synopsis:
  2603. -
  2604. -     cksum [OPTION]... [FILE]...
  2605. -
  2606. -   `cksum' prints the CRC checksum for each file along with the number
  2607. -of bytes in the file, and the filename unless no arguments were given.
  2608. -
  2609. -   `cksum' is typically used to ensure that files transferred by
  2610. -unreliable means (e.g., netnews) have not been corrupted, by comparing
  2611. -the `cksum' output for the received files with the `cksum' output for
  2612. -the original files (typically given in the distribution).
  2613. -
  2614. -   The CRC algorithm is specified by the POSIX.2 standard.  It is not
  2615. -compatible with the BSD or System V `sum' algorithms (see the previous
  2616. -section); it is more robust.
  2617. -
  2618. -   The only options are `--help' and `--version'.  *Note Common
  2619. -options::.
  2620. -
  2621. -
  2622. -File: textutils.info,  Node: md5sum invocation,  Prev: cksum invocation,  Up: Summarizing files
  2623. -
  2624. -`md5sum': Print or check message-digests
  2625. -========================================
  2626. -
  2627. -   `md5sum' computes a 128-bit checksum (or "fingerprint" or
  2628. -"message-digest") for each specified FILE.  If a FILE is specified as
  2629. -`-' or if no files are given `md5sum' computes the checksum for the
  2630. -standard input.  `md5sum' can also determine whether a file and
  2631. -checksum are consistent. Synopsis:
  2632. -
  2633. -     md5sum [OPTION]... [FILE]...
  2634. -     md5sum [OPTION]... --check [FILE]
  2635. -     md5sum [OPTION]... --string=STRING ...
  2636. -
  2637. -   For each FILE, `md5sum' outputs the MD5 checksum, a flag indicating
  2638. -a binary or text input file, and the filename.  If FILE is omitted or
  2639. -specified as `-', standard input is read.
  2640. -
  2641. -   The program accepts the following options.  Also see *Note Common
  2642. -options::.
  2643. -
  2644. -`-b'
  2645. -`--binary'
  2646. -     Treat all input files as binary.  This option has no effect on Unix
  2647. -     systems, since they don't distinguish between binary and text
  2648. -     files.  This option is useful on systems that have different
  2649. -     internal and external character representations.
  2650. -
  2651. -`-c'
  2652. -`--check'
  2653. -     Read filenames and checksum information from the single FILE (or
  2654. -     from stdin if no FILE was specified) and report whether each named
  2655. -     file and the corresponding checksum data are consistent.  The
  2656. -     input to this mode of `md5sum' is usually the output of a prior,
  2657. -     checksum-generating run of `md5sum'.  Each valid line of input
  2658. -     consists of an MD5 checksum, a binary/text flag, and then a
  2659. -     filename.  Binary files are marked with `*', text with ` '.  For
  2660. -     each such line, `md5sum' reads the named file and computes its MD5
  2661. -     checksum.  Then, if the computed message digest does not match the
  2662. -     one on the line with the filename, the file is noted as having
  2663. -     failed the test.  Otherwise, the file passes the test.  By
  2664. -     default, for each valid line, one line is written to standard
  2665. -     output indicating whether the named file passed the test.  After
  2666. -     all checks have been performed, if there were any failures, a
  2667. -     warning is issued to standard error.  Use the `--status' option to
  2668. -     inhibit that output.  If any listed file cannot be opened or read,
  2669. -     if any valid line has an MD5 checksum inconsistent with the
  2670. -     associated file, or if no valid line is found, `md5sum' exits with
  2671. -     nonzero status.  Otherwise, it exits successfully.
  2672. -
  2673. -`--status'
  2674. -     This option is useful only when verifying checksums.  When
  2675. -     verifying checksums, don't generate the default one-line-per-file
  2676. -     diagnostic and don't output the warning summarizing any failures.
  2677. -     Failures to open or read a file still evoke individual diagnostics
  2678. -     to standard error.  If all listed files are readable and are
  2679. -     consistent with the associated MD5 checksums, exit successfully.
  2680. -     Otherwise exit with a status code indicating there was a failure.
  2681. -
  2682. -`--string=STRING'
  2683. -     Compute the message digest for STRING, instead of for a file.  The
  2684. -     result is the same as for a file that contains exactly STRING.
  2685. -
  2686. -`-t'
  2687. -`--text'
  2688. -     Treat all input files as text files.  This is the reverse of
  2689. -     `--binary'.
  2690. -
  2691. -`-w'
  2692. -`--warn'
  2693. -     When verifying checksums, warn about improperly formated MD5
  2694. -     checksum lines.  This option is useful only if all but a few lines
  2695. -     in the checked input are valid.
  2696. -
  2697. -
  2698. -File: textutils.info,  Node: Operating on sorted files,  Next: Operating on fields within a line,  Prev: Summarizing files,  Up: Top
  2699. -
  2700. -Operating on sorted files
  2701. -*************************
  2702. -
  2703. -   These commands work with (or produce) sorted files.
  2704. -
  2705. -* Menu:
  2706. -
  2707. -* sort invocation::             Sort text files.
  2708. -* uniq invocation::             Uniqify files.
  2709. -* comm invocation::             Compare two sorted files line by line.
  2710. -
  2711. diff -rup --new-file baseline/fsf/textutils/doc/textutils.info-2 amiga/fsf/textutils/doc/textutils.info-2
  2712. --- baseline/fsf/textutils/doc/textutils.info-2    Thu Jul 11 20:14:23 1996
  2713. +++ amiga/fsf/textutils/doc/textutils.info-2    Wed Dec 31 17:00:00 1969
  2714. @@ -1,1122 +0,0 @@
  2715. -This is Info file ./textutils.info, produced by Makeinfo-1.63 from the
  2716. -input file textutils.texi.
  2717. -
  2718. -START-INFO-DIR-ENTRY
  2719. -* Text utilities: (textutils).          GNU text utilities.
  2720. -* cat: (textutils)cat invocation.               Concatenate and write files.
  2721. -* cksum: (textutils)cksum invocation.           Print POSIX CRC checksum.
  2722. -* comm: (textutils)comm invocation.             Compare sorted files by line.
  2723. -* csplit: (textutils)csplit invocation.         Split by context.
  2724. -* cut: (textutils)cut invocation.               Print selected parts of lines.
  2725. -* expand: (textutils)expand invocation.         Convert tabs to spaces.
  2726. -* fmt: (textutils)fmt invocation.               Reformat paragraph text.
  2727. -* fold: (textutils)fold invocation.             Wrap long input lines.
  2728. -* head: (textutils)head invocation.             Output the first part of files.
  2729. -* join: (textutils)join invocation.             Join lines on a common field.
  2730. -* md5sum: (textutils)md5sum invocation.         Print or check message-digests.
  2731. -* nl: (textutils)nl invocation.                 Number lines and write files.
  2732. -* od: (textutils)od invocation.                 Dump files in octal, etc.
  2733. -* paste: (textutils)paste invocation.           Merge lines of files.
  2734. -* pr: (textutils)pr invocation.                 Paginate or columnate files.
  2735. -* sort: (textutils)sort invocation.             Sort text files.
  2736. -* split: (textutils)split invocation.           Split into fixed-size pieces.
  2737. -* sum: (textutils)sum invocation.               Print traditional checksum.
  2738. -* tac: (textutils)tac invocation.               Reverse files.
  2739. -* tail: (textutils)tail invocation.             Output the last part of files.
  2740. -* tr: (textutils)tr invocation.                 Translate characters.
  2741. -* unexpand: (textutils)unexpand invocation.     Convert spaces to tabs.
  2742. -* uniq: (textutils)uniq invocation.             Uniqify files.
  2743. -* wc: (textutils)wc invocation.                 Byte, word, and line counts.
  2744. -END-INFO-DIR-ENTRY
  2745. -
  2746. -   This file documents the GNU text utilities.
  2747. -
  2748. -   Copyright (C) 1994, 95, 96 Free Software Foundation, Inc.
  2749. -
  2750. -   Permission is granted to make and distribute verbatim copies of this
  2751. -manual provided the copyright notice and this permission notice are
  2752. -preserved on all copies.
  2753. -
  2754. -   Permission is granted to copy and distribute modified versions of
  2755. -this manual under the conditions for verbatim copying, provided that
  2756. -the entire resulting derived work is distributed under the terms of a
  2757. -permission notice identical to this one.
  2758. -
  2759. -   Permission is granted to copy and distribute translations of this
  2760. -manual into another language, under the above conditions for modified
  2761. -versions, except that this permission notice may be stated in a
  2762. -translation approved by the Foundation.
  2763. -
  2764. -
  2765. -File: textutils.info,  Node: sort invocation,  Next: uniq invocation,  Up: Operating on sorted files
  2766. -
  2767. -`sort': Sort text files
  2768. -=======================
  2769. -
  2770. -   `sort' sorts, merges, or compares all the lines from the given
  2771. -files, or standard input if none are given or for a FILE of `-'.  By
  2772. -default, `sort' writes the results to standard output.  Synopsis:
  2773. -
  2774. -     sort [OPTION]... [FILE]...
  2775. -
  2776. -   `sort' has three modes of operation: sort (the default), merge, and
  2777. -check for sortedness.  The following options change the operation mode:
  2778. -
  2779. -`-c'
  2780. -     Check whether the given files are already sorted: if they are not
  2781. -     all sorted, print an error message and exit with a status of 1.
  2782. -     Otherwise, exit successfully.
  2783. -
  2784. -`-m'
  2785. -     Merge the given files by sorting them as a group.  Each input file
  2786. -     must always be individually sorted.  It always works to sort
  2787. -     instead of merge; merging is provided because it is faster, in the
  2788. -     case where it works.
  2789. -
  2790. -   A pair of lines is compared as follows: if any key fields have been
  2791. -specified, `sort' compares each pair of fields, in the order specified
  2792. -on the command line, according to the associated ordering options,
  2793. -until a difference is found or no fields are left.
  2794. -
  2795. -   If any of the global options `Mbdfinr' are given but no key fields
  2796. -are specified, `sort' compares the entire lines according to the global
  2797. -options.
  2798. -
  2799. -   Finally, as a last resort when all keys compare equal (or if no
  2800. -ordering options were specified at all), `sort' compares the lines byte
  2801. -by byte in machine collating sequence.  The last resort comparison
  2802. -honors the `-r' global option.  The `-s' (stable) option disables this
  2803. -last-resort comparison so that lines in which all fields compare equal
  2804. -are left in their original relative order.  If no fields or global
  2805. -options are specified, `-s' has no effect.
  2806. -
  2807. -   GNU `sort' (as specified for all GNU utilities) has no limits on
  2808. -input line length or restrictions on bytes allowed within lines.  In
  2809. -addition, if the final byte of an input file is not a newline, GNU
  2810. -`sort' silently supplies one.
  2811. -
  2812. -   Upon any error, `sort' exits with a status of `2'.
  2813. -
  2814. -   If the environment variable `TMPDIR' is set, `sort' uses its value
  2815. -as the directory for temporary files instead of `/tmp'.  The `-T
  2816. -TEMPDIR' option in turn overrides the environment variable.
  2817. -
  2818. -   The following options affect the ordering of output lines.  They may
  2819. -be specified globally or as part of a specific key field.  If no key
  2820. -fields are specified, global options apply to comparison of entire
  2821. -lines; otherwise the global options are inherited by key fields that do
  2822. -not specify any special options of their own.
  2823. -
  2824. -`-b'
  2825. -     Ignore leading blanks when finding sort keys in each line.
  2826. -
  2827. -`-d'
  2828. -     Sort in "phone directory" order: ignore all characters except
  2829. -     letters, digits and blanks when sorting.
  2830. -
  2831. -`-f'
  2832. -     Fold lowercase characters into the equivalent uppercase characters
  2833. -     when sorting so that, for example, `b' and `B' sort as equal.
  2834. -
  2835. -`-g'
  2836. -     Sort numerically, but use strtod(3) to arrive at the numeric
  2837. -     values.  This allows floating point numbers to be specified in
  2838. -     scientific notation, like `1.0e-34' and `10e100'.  Use this option
  2839. -     only if there is no alternative;  it is much slower than `-n' and
  2840. -     numbers with too many significant digits will be compared as if
  2841. -     they had been truncated.  In addition, numbers outside the range
  2842. -     of representable double precision floating point numbers are
  2843. -     treated as if they were zeroes; overflow and underflow are not
  2844. -     reported.
  2845. -
  2846. -`-i'
  2847. -     Ignore characters outside the printable ASCII range 040-0176 octal
  2848. -     (inclusive) when sorting.
  2849. -
  2850. -`-M'
  2851. -     An initial string, consisting of any amount of whitespace, followed
  2852. -     by three letters abbreviating a month name, is folded to UPPER
  2853. -     case and compared in the order `JAN' < `FEB' < ... < `DEC'.
  2854. -     Invalid names compare low to valid names.
  2855. -
  2856. -`-n'
  2857. -     Sort numerically: the number begins each line; specifically, it
  2858. -     consists of optional whitespace, an optional `-' sign, and zero or
  2859. -     more digits, optionally followed by a decimal point and zero or
  2860. -     more digits.
  2861. -
  2862. -     `sort -n' uses what might be considered an unconventional method
  2863. -     to compare strings representing floating point numbers.  Rather
  2864. -     than first converting each string to the C `double' type and then
  2865. -     comparing those values, sort aligns the decimal points in the two
  2866. -     strings and compares the strings a character at a time.  One
  2867. -     benefit of using this approach is its speed.  In practice this is
  2868. -     much more efficient than performing the two corresponding
  2869. -     string-to-double (or even string-to-integer) conversions and then
  2870. -     comparing doubles.  In addition, there is no corresponding loss of
  2871. -     precision.  Converting each string to `double' before comparison
  2872. -     would limit precision to about 16 digits on most systems.
  2873. -
  2874. -     Neither a leading `+' nor exponential notation is recognized.  To
  2875. -     compare such strings numerically, use the `-g' option.
  2876. -
  2877. -`-r'
  2878. -     Reverse the result of comparison, so that lines with greater key
  2879. -     values appear earlier in the output instead of later.
  2880. -
  2881. -   Other options are:
  2882. -
  2883. -`-o OUTPUT-FILE'
  2884. -     Write output to OUTPUT-FILE instead of standard output.  If
  2885. -     OUTPUT-FILE is one of the input files, `sort' copies it to a
  2886. -     temporary file before sorting and writing the output to
  2887. -     OUTPUT-FILE.
  2888. -
  2889. -`-t SEPARATOR'
  2890. -     Use character SEPARATOR as the field separator when finding the
  2891. -     sort keys in each line.  By default, fields are separated by the
  2892. -     empty string between a non-whitespace character and a whitespace
  2893. -     character.  That is, given the input line ` foo bar', `sort'
  2894. -     breaks it into fields ` foo' and ` bar'.  The field separator is
  2895. -     not considered to be part of either the field preceding or the
  2896. -     field following.
  2897. -
  2898. -`-u'
  2899. -     For the default case or the `-m' option, only output the first of
  2900. -     a sequence of lines that compare equal.  For the `-c' option,
  2901. -     check that no pair of consecutive lines compares equal.
  2902. -
  2903. -`-k POS1[,POS2]'
  2904. -     The recommended, POSIX, option for specifying a sort field.  The
  2905. -     field consists of the line between POS1 and POS2 (or the end of
  2906. -     the line, if POS2 is omitted), inclusive.  Fields and character
  2907. -     positions are numbered starting with 1.  See below.
  2908. -
  2909. -`-z'
  2910. -     Treat the input as a set of lines, each terminated by a zero byte
  2911. -     (ASCII NUL (Null) character) instead of a ASCII LF (Line Feed.)
  2912. -     This option can be useful in conjunction with `perl -0' or `find
  2913. -     -print0' and `xargs -0' which do the same in order to reliably
  2914. -     handle arbitrary pathnames (even those which contain Line Feed
  2915. -     characters.)
  2916. -
  2917. -`+POS1[-POS2]'
  2918. -     The obsolete, traditional option for specifying a sort field.  The
  2919. -     field consists of the line between POS1 and up to but *not
  2920. -     including* POS2 (or the end of the line if POS2 is omitted).
  2921. -     Fields and character positions are numbered starting with 0.  See
  2922. -     below.
  2923. -
  2924. -   In addition, when GNU `sort' is invoked with exactly one argument,
  2925. -options `--help' and `--version' are recognized.  *Note Common
  2926. -options::.
  2927. -
  2928. -   Historical (BSD and System V) implementations of `sort' have
  2929. -differed in their interpretation of some options, particularly `-b',
  2930. -`-f', and `-n'.  GNU sort follows the POSIX behavior, which is usually
  2931. -(but not always!) like the System V behavior.  According to POSIX, `-n'
  2932. -no longer implies `-b'.  For consistency, `-M' has been changed in the
  2933. -same way.  This may affect the meaning of character positions in field
  2934. -specifications in obscure cases.  The only fix is to add an explicit
  2935. -`-b'.
  2936. -
  2937. -   A position in a sort field specified with the `-k' or `+' option has
  2938. -the form `F.C', where F is the number of the field to use and C is the
  2939. -number of the first character from the beginning of the field (for
  2940. -`+POS') or from the end of the previous field (for `-POS').  If the `.C'
  2941. -is omitted, it is taken to be the first character in the field.  If the
  2942. -`-b' option was specified, the `.C' part of a field specification is
  2943. -counted from the first nonblank character of the field (for `+POS') or
  2944. -from the first nonblank character following the previous field (for
  2945. -`-POS').
  2946. -
  2947. -   A sort key option may also have any of the option letters `Mbdfinr'
  2948. -appended to it, in which case the global ordering options are not used
  2949. -for that particular field.  The `-b' option may be independently
  2950. -attached to either or both of the `+POS' and `-POS' parts of a field
  2951. -specification, and if it is inherited from the global options it will
  2952. -be attached to both.  If a `-n' or `-M' option is used, thus implying a
  2953. -`-b' option, the `-b' option is taken to apply to both the `+POS' and
  2954. -the `-POS' parts of a key specification.  Keys may span multiple fields.
  2955. -
  2956. -   Here are some examples to illustrate various combinations of options.
  2957. -In them, the POSIX `-k' option is used to specify sort keys rather than
  2958. -the obsolete `+POS1-POS2' syntax.
  2959. -
  2960. -   * Sort in descending (reverse) numeric order.
  2961. -
  2962. -          sort -nr
  2963. -
  2964. -     Sort alphabetically, omitting the first and second fields.  This
  2965. -     uses a single key composed of the characters beginning at the
  2966. -     start of field three and extending to the end of each line.
  2967. -
  2968. -          sort -k3
  2969. -
  2970. -   * Sort numerically on the second field and resolve ties by sorting
  2971. -     alphabetically on the third and fourth characters of field five.
  2972. -     Use `:' as the field delimiter.
  2973. -
  2974. -          sort -t : -k 2,2n -k 5.3,5.4
  2975. -
  2976. -     Note that if you had written `-k 2' instead of `-k 2,2' `sort'
  2977. -     would have used all characters beginning in the second field and
  2978. -     extending to the end of the line as the primary *numeric* key.
  2979. -     For the large majority of applications, treating keys spanning
  2980. -     more than one field as numeric will not do what you expect.
  2981. -
  2982. -     Also note that the `n' modifier was applied to the field-end
  2983. -     specifier for the first key.  It would have been equivalent to
  2984. -     specify `-k 2n,2' or `-k 2n,2n'.  All modifiers except `b' apply
  2985. -     to the associated *field*, regardless of whether the modifier
  2986. -     character is attached to the field-start and/or the field-end part
  2987. -     of the key specifier.
  2988. -
  2989. -   * Sort the password file on the fifth field and ignore any leading
  2990. -     white space.  Sort lines with equal values in field five on the
  2991. -     numeric user ID in field three.
  2992. -
  2993. -          sort -t : -k 5b,5 -k 3,3n /etc/passwd
  2994. -
  2995. -     An alternative is to use the global numeric modifier `-n'.
  2996. -
  2997. -          sort -t : -n -k 5b,5 -k 3,3 /etc/passwd
  2998. -
  2999. -   * Generate a tags file in case insensitive sorted order.
  3000. -          find src -type f -print0 | sort -t / -z -f | xargs -0 etags --append
  3001. -
  3002. -     The use of `-print0', `-z', and `-0' in this case mean that
  3003. -     pathnames that contain Line Feed characters will not get broken up
  3004. -     by the sort operation.
  3005. -
  3006. -     Finally, to ignore both leading and trailing white space, you
  3007. -     could have applied the `b' modifier to the field-end specifier for
  3008. -     the first key,
  3009. -
  3010. -          sort -t : -n -k 5b,5b -k 3,3 /etc/passwd
  3011. -
  3012. -     or by using the global `-b' modifier instead of `-n' and an
  3013. -     explicit `n' with the second key specifier.
  3014. -
  3015. -          sort -t : -b -k 5,5 -k 3,3n /etc/passwd
  3016. -
  3017. -
  3018. -File: textutils.info,  Node: uniq invocation,  Next: comm invocation,  Prev: sort invocation,  Up: Operating on sorted files
  3019. -
  3020. -`uniq': Uniqify files
  3021. -=====================
  3022. -
  3023. -   `uniq' writes the unique lines in the given `input', or standard
  3024. -input if nothing is given or for an INPUT name of `-'.  Synopsis:
  3025. -
  3026. -     uniq [OPTION]... [INPUT [OUTPUT]]
  3027. -
  3028. -   By default, `uniq' prints the unique lines in a sorted file, i.e.,
  3029. -discards all but one of identical successive lines.  Optionally, it can
  3030. -instead show only lines that appear exactly once, or lines that appear
  3031. -more than once.
  3032. -
  3033. -   The input must be sorted.  If your input is not sorted, perhaps you
  3034. -want to use `sort -u'.
  3035. -
  3036. -   If no OUTPUT file is specified, `uniq' writes to standard output.
  3037. -
  3038. -   The program accepts the following options.  Also see *Note Common
  3039. -options::.
  3040. -
  3041. -`-N'
  3042. -`-f N'
  3043. -`--skip-fields=N'
  3044. -     Skip N fields on each line before checking for uniqueness.  Fields
  3045. -     are sequences of non-space non-tab characters that are separated
  3046. -     from each other by at least one spaces or tabs.
  3047. -
  3048. -`+N'
  3049. -`-s N'
  3050. -`--skip-chars=N'
  3051. -     Skip N characters before checking for uniqueness.  If you use both
  3052. -     the field and character skipping options, fields are skipped over
  3053. -     first.
  3054. -
  3055. -`-c'
  3056. -`--count'
  3057. -     Print the number of times each line occurred along with the line.
  3058. -
  3059. -`-i'
  3060. -`--ignore-case'
  3061. -     Ignore differences in case when comparing lines.
  3062. -
  3063. -`-d'
  3064. -`--repeated'
  3065. -     Print only duplicate lines.
  3066. -
  3067. -`-u'
  3068. -`--unique'
  3069. -     Print only unique lines.
  3070. -
  3071. -`-w N'
  3072. -`--check-chars=N'
  3073. -     Compare N characters on each line (after skipping any specified
  3074. -     fields and characters).  By default the entire rest of the lines
  3075. -     are compared.
  3076. -
  3077. -
  3078. -File: textutils.info,  Node: comm invocation,  Prev: uniq invocation,  Up: Operating on sorted files
  3079. -
  3080. -`comm': Compare two sorted files line by line
  3081. -=============================================
  3082. -
  3083. -   `comm' writes to standard output lines that are common, and lines
  3084. -that are unique, to two input files; a file name of `-' means standard
  3085. -input.  Synopsis:
  3086. -
  3087. -     comm [OPTION]... FILE1 FILE2
  3088. -
  3089. -   The input files must be sorted before `comm' can be used.
  3090. -
  3091. -   With no options, `comm' produces three column output.  Column one
  3092. -contains lines unique to FILE1, column two contains lines unique to
  3093. -FILE2, and column three contains lines common to both files.  Columns
  3094. -are separated by TAB.
  3095. -
  3096. -   The options `-1', `-2', and `-3' suppress printing of the
  3097. -corresponding columns.  Also see *Note Common options::.
  3098. -
  3099. -
  3100. -File: textutils.info,  Node: Operating on fields within a line,  Next: Operating on characters,  Prev: Operating on sorted files,  Up: Top
  3101. -
  3102. -Operating on fields within a line
  3103. -*********************************
  3104. -
  3105. -* Menu:
  3106. -
  3107. -* cut invocation::              Print selected parts of lines.
  3108. -* paste invocation::            Merge lines of files.
  3109. -* join invocation::             Join lines on a common field.
  3110. -
  3111. -
  3112. -File: textutils.info,  Node: cut invocation,  Next: paste invocation,  Up: Operating on fields within a line
  3113. -
  3114. -`cut': Print selected parts of lines
  3115. -====================================
  3116. -
  3117. -   `cut' writes to standard output selected parts of each line of each
  3118. -input file, or standard input if no files are given or for a file name
  3119. -of `-'.  Synopsis:
  3120. -
  3121. -     cut [OPTION]... [FILE]...
  3122. -
  3123. -   In the table which follows, the BYTE-LIST, CHARACTER-LIST, and
  3124. -FIELD-LIST are one or more numbers or ranges (two numbers separated by
  3125. -a dash) separated by commas.  Bytes, characters, and fields are
  3126. -numbered from starting at 1.  Incomplete ranges may be given: `-M'
  3127. -means `1-M'; `N-' means `N' through end of line or last field.
  3128. -
  3129. -   The program accepts the following options.  Also see *Note Common
  3130. -options::.
  3131. -
  3132. -`-b BYTE-LIST'
  3133. -`--bytes=BYTE-LIST'
  3134. -     Print only the bytes in positions listed in BYTE-LIST.  Tabs and
  3135. -     backspaces are treated like any other character; they take up 1
  3136. -     byte.
  3137. -
  3138. -`-c CHARACTER-LIST'
  3139. -`--characters=CHARACTER-LIST'
  3140. -     Print only characters in positions listed in CHARACTER-LIST.  The
  3141. -     same as `-b' for now, but internationalization will change that.
  3142. -     Tabs and backspaces are treated like any other character; they
  3143. -     take up 1 character.
  3144. -
  3145. -`-f FIELD-LIST'
  3146. -`--fields=FIELD-LIST'
  3147. -     Print only the fields listed in FIELD-LIST.  Fields are separated
  3148. -     by a TAB by default.
  3149. -
  3150. -`-d DELIM'
  3151. -`--delimiter=DELIM'
  3152. -     For `-f', fields are separated by the first character in DELIM
  3153. -     (default is TAB).
  3154. -
  3155. -`-n'
  3156. -     Do not split multi-byte characters (no-op for now).
  3157. -
  3158. -`-s'
  3159. -`--only-delimited'
  3160. -     For `-f', do not print lines that do not contain the field
  3161. -     separator character.
  3162. -
  3163. -
  3164. -File: textutils.info,  Node: paste invocation,  Next: join invocation,  Prev: cut invocation,  Up: Operating on fields within a line
  3165. -
  3166. -`paste': Merge lines of files
  3167. -=============================
  3168. -
  3169. -   `paste' writes to standard output lines consisting of sequentially
  3170. -corresponding lines of each given file, separated by TAB.  Standard
  3171. -input is used for a file name of `-' or if no input files are given.
  3172. -
  3173. -   Synopsis:
  3174. -
  3175. -     paste [OPTION]... [FILE]...
  3176. -
  3177. -   The program accepts the following options.  Also see *Note Common
  3178. -options::.
  3179. -
  3180. -`-s'
  3181. -`--serial'
  3182. -     Paste the lines of one file at a time rather than one line from
  3183. -     each file.
  3184. -
  3185. -`-d DELIM-LIST'
  3186. -`--delimiters DELIM-LIST'
  3187. -     Consecutively use the characters in DELIM-LIST instead of TAB to
  3188. -     separate merged lines.  When DELIM-LIST is exhausted, start again
  3189. -     at its beginning.
  3190. -
  3191. -
  3192. -File: textutils.info,  Node: join invocation,  Prev: paste invocation,  Up: Operating on fields within a line
  3193. -
  3194. -`join': Join lines on a common field
  3195. -====================================
  3196. -
  3197. -   `join' writes to standard output a line for each pair of input lines
  3198. -that have identical join fields.  Synopsis:
  3199. -
  3200. -     join [OPTION]... FILE1 FILE2
  3201. -
  3202. -   Either FILE1 or FILE2 (but not both) can be `-', meaning standard
  3203. -input.  FILE1 and FILE2 should be already sorted in increasing order
  3204. -(not numerically) on the join fields; unless the `-t' option is given,
  3205. -they should be sorted ignoring blanks at the start of the join field,
  3206. -as in `sort -b'.  If the `--ignore-case' option is given, lines should
  3207. -be sorted without regard to the case of characters in the join field,
  3208. -as in `sort -f'.
  3209. -
  3210. -   The defaults are: the join field is the first field in each line;
  3211. -fields in the input are separated by one or more blanks, with leading
  3212. -blanks on the line ignored; fields in the output are separated by a
  3213. -space; each output line consists of the join field, the remaining
  3214. -fields from FILE1, then the remaining fields from FILE2.
  3215. -
  3216. -   The program accepts the following options.  Also see *Note Common
  3217. -options::.
  3218. -
  3219. -`-a FILE-NUMBER'
  3220. -     Print a line for each unpairable line in file FILE-NUMBER (either
  3221. -     `1' or `2'), in addition to the normal output.
  3222. -
  3223. -`-e STRING'
  3224. -     Replace those output fields that are missing in the input with
  3225. -     STRING.
  3226. -
  3227. -`-i'
  3228. -`--ignore-case'
  3229. -     Ignore differences in case when comparing keys.  With this option,
  3230. -     the lines of the input files must be ordered in the same way.  Use
  3231. -     `sort -f' to produce this ordering.
  3232. -
  3233. -`-1 FIELD'
  3234. -`-j1 FIELD'
  3235. -     Join on field FIELD (a positive integer) of file 1.
  3236. -
  3237. -`-2 FIELD'
  3238. -`-j2 FIELD'
  3239. -     Join on field FIELD (a positive integer) of file 2.
  3240. -
  3241. -`-j FIELD'
  3242. -     Equivalent to `-1 FIELD -2 FIELD'.
  3243. -
  3244. -`-o FIELD-LIST...'
  3245. -     Construct each output line according to the format in FIELD-LIST.
  3246. -     Each element in FIELD-LIST is either the single character `0' or
  3247. -     has the form M.N where the file number, M, is `1' or `2' and N is
  3248. -     a positive field number.
  3249. -
  3250. -     A field specification of `0' denotes the join field.  In most
  3251. -     cases, the functionality of the `0' field spec may be reproduced
  3252. -     using the explicit M.N that corresponds to the join field.
  3253. -     However, when printing unpairable lines (using either of the `-a'
  3254. -     or `-v' options), there is no way to specify the join field using
  3255. -     M.N in FIELD-LIST if there are unpairable lines in both files.  To
  3256. -     give `join' that functionality, POSIX invented the `0' field
  3257. -     specification notation.
  3258. -
  3259. -     The elements in FIELD-LIST are separated by commas or blanks.
  3260. -     Multiple FIELD-LIST arguments can be given after a single `-o'
  3261. -     option; the values of all lists given with `-o' are concatenated
  3262. -     together.  All output lines - including those printed because of
  3263. -     any -a or -v option - are subject to the specified FIELD-LIST.
  3264. -
  3265. -`-t CHAR'
  3266. -     Use character CHAR as the input and output field separator.
  3267. -
  3268. -`-v FILE-NUMBER'
  3269. -     Print a line for each unpairable line in file FILE-NUMBER (either
  3270. -     `1' or `2'), instead of the normal output.
  3271. -
  3272. -   In addition, when GNU `join' is invoked with exactly one argument,
  3273. -options `--help' and `--version' are recognized.  *Note Common
  3274. -options::.
  3275. -
  3276. -
  3277. -File: textutils.info,  Node: Operating on characters,  Next: Opening the software toolbox,  Prev: Operating on fields within a line,  Up: Top
  3278. -
  3279. -Operating on characters
  3280. -***********************
  3281. -
  3282. -   This commands operate on individual characters.
  3283. -
  3284. -* Menu:
  3285. -
  3286. -* tr invocation::               Translate, squeeze, and/or delete characters.
  3287. -* expand invocation::           Convert tabs to spaces.
  3288. -* unexpand invocation::         Convert spaces to tabs.
  3289. -
  3290. -
  3291. -File: textutils.info,  Node: tr invocation,  Next: expand invocation,  Up: Operating on characters
  3292. -
  3293. -`tr': Translate, squeeze, and/or delete characters
  3294. -==================================================
  3295. -
  3296. -   Synopsis:
  3297. -
  3298. -     tr [OPTION]... SET1 [SET2]
  3299. -
  3300. -   `tr' copies standard input to standard output, performing one of the
  3301. -following operations:
  3302. -
  3303. -   * translate, and optionally squeeze repeated characters in the
  3304. -     result,
  3305. -
  3306. -   * squeeze repeated characters,
  3307. -
  3308. -   * delete characters,
  3309. -
  3310. -   * delete characters, then squeeze repeated characters from the
  3311. -     result.
  3312. -
  3313. -   The SET1 and (if given) SET2 arguments define ordered sets of
  3314. -characters, referred to below as SET1 and SET2.  These sets are the
  3315. -characters of the input that `tr' operates on.  The `--complement'
  3316. -(`-c') option replaces SET1 with its complement (all of the characters
  3317. -that are not in SET1).
  3318. -
  3319. -* Menu:
  3320. -
  3321. -* Character sets::              Specifying sets of characters.
  3322. -* Translating::                 Changing one characters to another.
  3323. -* Squeezing::                   Squeezing repeats and deleting.
  3324. -* Warnings in tr::              Warning messages.
  3325. -
  3326. -
  3327. -File: textutils.info,  Node: Character sets,  Next: Translating,  Up: tr invocation
  3328. -
  3329. -Specifying sets of characters
  3330. ------------------------------
  3331. -
  3332. -   The format of the SET1 and SET2 arguments resembles the format of
  3333. -regular expressions; however, they are not regular expressions, only
  3334. -lists of characters.  Most characters simply represent themselves in
  3335. -these strings, but the strings can contain the shorthands listed below,
  3336. -for convenience.  Some of them can be used only in SET1 or SET2, as
  3337. -noted below.
  3338. -
  3339. -Backslash escapes.
  3340. -     A backslash followed by a character not listed below causes an
  3341. -     error message.
  3342. -
  3343. -    `\a'
  3344. -          Control-G,
  3345. -
  3346. -    `\b'
  3347. -          Control-H,
  3348. -
  3349. -    `\f'
  3350. -          Control-L,
  3351. -
  3352. -    `\n'
  3353. -          Control-J,
  3354. -
  3355. -    `\r'
  3356. -          Control-M,
  3357. -
  3358. -    `\t'
  3359. -          Control-I,
  3360. -
  3361. -    `\v'
  3362. -          Control-K,
  3363. -
  3364. -    `\OOO'
  3365. -          The character with the value given by OOO, which is 1 to 3
  3366. -          octal digits,
  3367. -
  3368. -    `\\'
  3369. -          A backslash.
  3370. -
  3371. -Ranges.
  3372. -     The notation `M-N' expands to all of the characters from M through
  3373. -     N, in ascending order.  M should collate before N; if it doesn't,
  3374. -     an error results.  As an example, `0-9' is the same as
  3375. -     `0123456789'.  Although GNU `tr' does not support the System V
  3376. -     syntax that uses square brackets to enclose ranges, translations
  3377. -     specified in that format will still work as long as the brackets
  3378. -     in STRING1 correspond to identical brackets in STRING2.
  3379. -
  3380. -Repeated characters.
  3381. -     The notation `[C*N]' in SET2 expands to N copies of character C.
  3382. -     Thus, `[y*6]' is the same as `yyyyyy'.  The notation `[C*]' in
  3383. -     STRING2 expands to as many copies of C as are needed to make SET2
  3384. -     as long as SET1.  If N begins with `0', it is interpreted in
  3385. -     octal, otherwise in decimal.
  3386. -
  3387. -Character classes.
  3388. -     The notation `[:CLASS:]' expands to all of the characters in the
  3389. -     (predefined) class CLASS.  The characters expand in no particular
  3390. -     order, except for the `upper' and `lower' classes, which expand in
  3391. -     ascending order.  When the `--delete' (`-d') and
  3392. -     `--squeeze-repeats' (`-s') options are both given, any character
  3393. -     class can be used in SET2.  Otherwise, only the character classes
  3394. -     `lower' and `upper' are accepted in SET2, and then only if the
  3395. -     corresponding character class (`upper' and `lower', respectively)
  3396. -     is specified in the same relative position in SET1.  Doing this
  3397. -     specifies case conversion.  The class names are given below; an
  3398. -     error results when an invalid class name is given.
  3399. -
  3400. -    `alnum'
  3401. -          Letters and digits.
  3402. -
  3403. -    `alpha'
  3404. -          Letters.
  3405. -
  3406. -    `blank'
  3407. -          Horizontal whitespace.
  3408. -
  3409. -    `cntrl'
  3410. -          Control characters.
  3411. -
  3412. -    `digit'
  3413. -          Digits.
  3414. -
  3415. -    `graph'
  3416. -          Printable characters, not including space.
  3417. -
  3418. -    `lower'
  3419. -          Lowercase letters.
  3420. -
  3421. -    `print'
  3422. -          Printable characters, including space.
  3423. -
  3424. -    `punct'
  3425. -          Punctuation characters.
  3426. -
  3427. -    `space'
  3428. -          Horizontal or vertical whitespace.
  3429. -
  3430. -    `upper'
  3431. -          Uppercase letters.
  3432. -
  3433. -    `xdigit'
  3434. -          Hexadecimal digits.
  3435. -
  3436. -Equivalence classes.
  3437. -     The syntax `[=C=]' expands to all of the characters that are
  3438. -     equivalent to C, in no particular order.  Equivalence classes are
  3439. -     a relatively recent invention intended to support non-English
  3440. -     alphabets.  But there seems to be no standard way to define them
  3441. -     or determine their contents.  Therefore, they are not fully
  3442. -     implemented in GNU `tr'; each character's equivalence class
  3443. -     consists only of that character, which is of no particular use.
  3444. -
  3445. -
  3446. -File: textutils.info,  Node: Translating,  Next: Squeezing,  Prev: Character sets,  Up: tr invocation
  3447. -
  3448. -Translating
  3449. ------------
  3450. -
  3451. -   `tr' performs translation when SET1 and SET2 are both given and the
  3452. -`--delete' (`-d') option is not given.  `tr' translates each character
  3453. -of its input that is in SET1 to the corresponding character in SET2.
  3454. -Characters not in SET1 are passed through unchanged.  When a character
  3455. -appears more than once in SET1 and the corresponding characters in SET2
  3456. -are not all the same, only the final one is used.  For example, these
  3457. -two commands are equivalent:
  3458. -
  3459. -     tr aaa xyz
  3460. -     tr a z
  3461. -
  3462. -   A common use of `tr' is to convert lowercase characters to
  3463. -uppercase.  This can be done in many ways.  Here are three of them:
  3464. -
  3465. -     tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
  3466. -     tr a-z A-Z
  3467. -     tr '[:lower:]' '[:upper:]'
  3468. -
  3469. -   When `tr' is performing translation, SET1 and SET2 typically have
  3470. -the same length.  If SET1 is shorter than SET2, the extra characters at
  3471. -the end of SET2 are ignored.
  3472. -
  3473. -   On the other hand, making SET1 longer than SET2 is not portable;
  3474. -POSIX.2 says that the result is undefined.  In this situation, BSD `tr'
  3475. -pads SET2 to the length of SET1 by repeating the last character of SET2
  3476. -as many times as necessary.  System V `tr' truncates SET1 to the length
  3477. -of SET2.
  3478. -
  3479. -   By default, GNU `tr' handles this case like BSD `tr'.  When the
  3480. -`--truncate-set1' (`-t') option is given, GNU `tr' handles this case
  3481. -like the System V `tr' instead.  This option is ignored for operations
  3482. -other than translation.
  3483. -
  3484. -   Acting like System V `tr' in this case breaks the relatively common
  3485. -BSD idiom:
  3486. -
  3487. -     tr -cs A-Za-z0-9 '\012'
  3488. -
  3489. -because it converts only zero bytes (the first element in the
  3490. -complement of SET1), rather than all non-alphanumerics, to newlines.
  3491. -
  3492. -
  3493. -File: textutils.info,  Node: Squeezing,  Next: Warnings in tr,  Prev: Translating,  Up: tr invocation
  3494. -
  3495. -Squeezing repeats and deleting
  3496. -------------------------------
  3497. -
  3498. -   When given just the `--delete' (`-d') option, `tr' removes any input
  3499. -characters that are in SET1.
  3500. -
  3501. -   When given just the `--squeeze-repeats' (`-s') option, `tr' replaces
  3502. -each input sequence of a repeated character that is in SET1 with a
  3503. -single occurrence of that character.
  3504. -
  3505. -   When given both `--delete' and `--squeeze-repeats', `tr' first
  3506. -performs any deletions using SET1, then squeezes repeats from any
  3507. -remaining characters using SET2.
  3508. -
  3509. -   The `--squeeze-repeats' option may also be used when translating, in
  3510. -which case `tr' first performs translation, then squeezes repeats from
  3511. -any remaining characters using SET2.
  3512. -
  3513. -   Here are some examples to illustrate various combinations of options:
  3514. -
  3515. -   * Remove all zero bytes:
  3516. -
  3517. -          tr -d '\000'
  3518. -
  3519. -   * Put all words on lines by themselves.  This converts all
  3520. -     non-alphanumeric characters to newlines, then squeezes each string
  3521. -     of repeated newlines into a single newline:
  3522. -
  3523. -          tr -cs '[a-zA-Z0-9]' '[\n*]'
  3524. -
  3525. -   * Convert each sequence of repeated newlines to a single newline:
  3526. -
  3527. -          tr -s '\n'
  3528. -
  3529. -
  3530. -File: textutils.info,  Node: Warnings in tr,  Prev: Squeezing,  Up: tr invocation
  3531. -
  3532. -Warning messages
  3533. -----------------
  3534. -
  3535. -   Setting the environment variable `POSIXLY_CORRECT' turns off the
  3536. -following warning and error messages, for strict compliance with
  3537. -POSIX.2.  Otherwise, the following diagnostics are issued:
  3538. -
  3539. -  1. When the `--delete' option is given but `--squeeze-repeats' is
  3540. -     not, and SET2 is given, GNU `tr' by default prints a usage message
  3541. -     and exits, because SET2 would not be used.  The POSIX
  3542. -     specification says that SET2 must be ignored in this case.
  3543. -     Silently ignoring arguments is a bad idea.
  3544. -
  3545. -  2. When an ambiguous octal escape is given.  For example, `\400' is
  3546. -     actually `\40' followed by the digit `0', because the value 400
  3547. -     octal does not fit into a single byte.
  3548. -
  3549. -
  3550. -   GNU `tr' does not provide complete BSD or System V compatibility.
  3551. -For example, it is impossible to disable interpretation of the POSIX
  3552. -constructs `[:alpha:]', `[=c=]', and `[c*10]'.  Also, GNU `tr' does not
  3553. -delete zero bytes automatically, unlike traditional Unix versions,
  3554. -which provide no way to preserve zero bytes.
  3555. -
  3556. -
  3557. -File: textutils.info,  Node: expand invocation,  Next: unexpand invocation,  Prev: tr invocation,  Up: Operating on characters
  3558. -
  3559. -`expand': Convert tabs to spaces
  3560. -================================
  3561. -
  3562. -   `expand' writes the contents of each given FILE, or standard input
  3563. -if none are given or for a FILE of `-', to standard output, with tab
  3564. -characters converted to the appropriate number of spaces.  Synopsis:
  3565. -
  3566. -     expand [OPTION]... [FILE]...
  3567. -
  3568. -   By default, `expand' converts all tabs to spaces.  It preserves
  3569. -backspace characters in the output; they decrement the column count for
  3570. -tab calculations.  The default action is equivalent to `-8' (set tabs
  3571. -every 8 columns).
  3572. -
  3573. -   The program accepts the following options.  Also see *Note Common
  3574. -options::.
  3575. -
  3576. -`-TAB1[,TAB2]...'
  3577. -`-t TAB1[,TAB2]...'
  3578. -`--tabs=TAB1[,TAB2]...'
  3579. -     If only one tab stop is given, set the tabs TAB1 spaces apart
  3580. -     (default is 8).  Otherwise, set the tabs at columns TAB1, TAB2,
  3581. -     ... (numbered from 0), and replace any tabs beyond the last
  3582. -     tabstop given with single spaces.  If the tabstops are specified
  3583. -     with the `-t' or `--tabs' option, they can be separated by blanks
  3584. -     as well as by commas.
  3585. -
  3586. -`-i'
  3587. -`--initial'
  3588. -     Only convert initial tabs (those that precede all non-space or
  3589. -     non-tab characters) on each line to spaces.
  3590. -
  3591. -
  3592. -File: textutils.info,  Node: unexpand invocation,  Prev: expand invocation,  Up: Operating on characters
  3593. -
  3594. -`unexpand': Convert spaces to tabs
  3595. -==================================
  3596. -
  3597. -   `unexpand' writes the contents of each given FILE, or standard input
  3598. -if none are given or for a FILE of `-', to standard output, with
  3599. -strings of two or more space or tab characters converted to as many
  3600. -tabs as possible followed by as many spaces as are needed.  Synopsis:
  3601. -
  3602. -     unexpand [OPTION]... [FILE]...
  3603. -
  3604. -   By default, `unexpand' converts only initial spaces and tabs (those
  3605. -that precede all non space or tab characters) on each line.  It
  3606. -preserves backspace characters in the output; they decrement the column
  3607. -count for tab calculations.  By default, tabs are set at every 8th
  3608. -column.
  3609. -
  3610. -   The program accepts the following options.  Also see *Note Common
  3611. -options::.
  3612. -
  3613. -`-TAB1[,TAB2]...'
  3614. -`-t TAB1[,TAB2]...'
  3615. -`--tabs=TAB1[,TAB2]...'
  3616. -     If only one tab stop is given, set the tabs TAB1 spaces apart
  3617. -     instead of the default 8.  Otherwise, set the tabs at columns
  3618. -     TAB1, TAB2, ... (numbered from 0), and leave spaces and tabs
  3619. -     beyond the tabstops given unchanged.  If the tabstops are specified
  3620. -     with the `-t' or `--tabs' option, they can be separated by blanks
  3621. -     as well as by commas.  This option implies the `-a' option.
  3622. -
  3623. -`-a'
  3624. -`--all'
  3625. -     Convert all strings of two or more spaces or tabs, not just initial
  3626. -     ones, to tabs.
  3627. -
  3628. -
  3629. -File: textutils.info,  Node: Opening the software toolbox,  Next: Index,  Prev: Operating on characters,  Up: Top
  3630. -
  3631. -Opening the software toolbox
  3632. -****************************
  3633. -
  3634. -   This chapter originally appeared in `Linux Journal', volume 1,
  3635. -number 2, in the `What's GNU?' column. It was written by Arnold Robbins.
  3636. -
  3637. -* Menu:
  3638. -
  3639. -* Toolbox introduction::
  3640. -* I/O redirection::
  3641. -* The `who' command::
  3642. -* The `cut' command::
  3643. -* The `sort' command::
  3644. -* The `uniq' command::
  3645. -* Putting the tools together::
  3646. -
  3647. -
  3648. -File: textutils.info,  Node: Toolbox introduction,  Next: I/O redirection,  Up: Opening the software toolbox
  3649. -
  3650. -Toolbox introduction
  3651. -====================
  3652. -
  3653. -   This month's column is only peripherally related to the GNU Project,
  3654. -in that it describes a number of the GNU tools on your Linux system and
  3655. -how they might be used.  What it's really about is the "Software Tools"
  3656. -philosophy of program development and usage.
  3657. -
  3658. -   The software tools philosophy was an important and integral concept
  3659. -in the initial design and development of Unix (of which Linux and GNU
  3660. -are essentially clones).  Unfortunately, in the modern day press of
  3661. -Internetworking and flashy GUIs, it seems to have fallen by the
  3662. -wayside.  This is a shame, since it provides a powerful mental model
  3663. -for solving many kinds of problems.
  3664. -
  3665. -   Many people carry a Swiss Army knife around in their pants pockets
  3666. -(or purse).  A Swiss Army knife is a handy tool to have: it has several
  3667. -knife blades, a screwdriver, tweezers, toothpick, nail file, corkscrew,
  3668. -and perhaps a number of other things on it.  For the everyday, small
  3669. -miscellaneous jobs where you need a simple, general purpose tool, it's
  3670. -just the thing.
  3671. -
  3672. -   On the other hand, an experienced carpenter doesn't build a house
  3673. -using a Swiss Army knife.  Instead, he has a toolbox chock full of
  3674. -specialized tools--a saw, a hammer, a screwdriver, a plane, and so on.
  3675. -And he knows exactly when and where to use each tool; you won't catch
  3676. -him hammering nails with the handle of his screwdriver.
  3677. -
  3678. -   The Unix developers at Bell Labs were all professional programmers
  3679. -and trained computer scientists.  They had found that while a
  3680. -one-size-fits-all program might appeal to a user because there's only
  3681. -one program to use, in practice such programs are
  3682. -
  3683. -  a. difficult to write,
  3684. -
  3685. -  b. difficult to maintain and debug, and
  3686. -
  3687. -  c. difficult to extend to meet new situations.
  3688. -
  3689. -   Instead, they felt that programs should be specialized tools.  In
  3690. -short, each program "should do one thing well."  No more and no less.
  3691. -Such programs are simpler to design, write, and get right--they only do
  3692. -one thing.
  3693. -
  3694. -   Furthermore, they found that with the right machinery for hooking
  3695. -programs together, that the whole was greater than the sum of the
  3696. -parts.  By combining several special purpose programs, you could
  3697. -accomplish a specific task that none of the programs was designed for,
  3698. -and accomplish it much more quickly and easily than if you had to write
  3699. -a special purpose program.  We will see some (classic) examples of this
  3700. -further on in the column.  (An important additional point was that, if
  3701. -necessary, take a detour and build any software tools you may need
  3702. -first, if you don't already have something appropriate in the toolbox.)
  3703. -
  3704. -
  3705. -File: textutils.info,  Node: I/O redirection,  Next: The `who' command,  Prev: Toolbox introduction,  Up: Opening the software toolbox
  3706. -
  3707. -I/O redirection
  3708. -===============
  3709. -
  3710. -   Hopefully, you are familiar with the basics of I/O redirection in the
  3711. -shell, in particular the concepts of "standard input," "standard
  3712. -output," and "standard error".  Briefly, "standard input" is a data
  3713. -source, where data comes from.  A program should not need to either
  3714. -know or care if the data source is a disk file, a keyboard, a magnetic
  3715. -tape, or even a punched card reader.  Similarly, "standard output" is a
  3716. -data sink, where data goes to.  The program should neither know nor
  3717. -care where this might be.  Programs that only read their standard
  3718. -input, do something to the data, and then send it on, are called
  3719. -"filters", by analogy to filters in a water pipeline.
  3720. -
  3721. -   With the Unix shell, it's very easy to set up data pipelines:
  3722. -
  3723. -     program_to_create_data | filter1 | .... | filterN > final.pretty.data
  3724. -
  3725. -   We start out by creating the raw data; each filter applies some
  3726. -successive transformation to the data, until by the time it comes out
  3727. -of the pipeline, it is in the desired form.
  3728. -
  3729. -   This is fine and good for standard input and standard output.  Where
  3730. -does the standard error come in to play?  Well, think about `filter1' in
  3731. -the pipeline above.  What happens if it encounters an error in the data
  3732. -it sees?  If it writes an error message to standard output, it will just
  3733. -disappear down the pipeline into `filter2''s input, and the user will
  3734. -probably never see it.  So programs need a place where they can send
  3735. -error messages so that the user will notice them.  This is standard
  3736. -error, and it is usually connected to your console or window, even if
  3737. -you have redirected standard output of your program away from your
  3738. -screen.
  3739. -
  3740. -   For filter programs to work together, the format of the data has to
  3741. -be agreed upon.  The most straightforward and easiest format to use is
  3742. -simply lines of text.  Unix data files are generally just streams of
  3743. -bytes, with lines delimited by the ASCII LF (Line Feed) character,
  3744. -conventionally called a "newline" in the Unix literature. (This is
  3745. -`'\n'' if you're a C programmer.)  This is the format used by all the
  3746. -traditional filtering programs.  (Many earlier operating systems had
  3747. -elaborate facilities and special purpose programs for managing binary
  3748. -data.  Unix has always shied away from such things, under the
  3749. -philosophy that it's easiest to simply be able to view and edit your
  3750. -data with a text editor.)
  3751. -
  3752. -   OK, enough introduction. Let's take a look at some of the tools, and
  3753. -then we'll see how to hook them together in interesting ways.   In the
  3754. -following discussion, we will only present those command line options
  3755. -that interest us.  As you should always do, double check your system
  3756. -documentation for the full story.
  3757. -
  3758. -
  3759. -File: textutils.info,  Node: The `who' command,  Next: The `cut' command,  Prev: I/O redirection,  Up: Opening the software toolbox
  3760. -
  3761. -The `who' command
  3762. -=================
  3763. -
  3764. -   The first program is the `who' command.  By itself, it generates a
  3765. -list of the users who are currently logged in.  Although I'm writing
  3766. -this on a single-user system, we'll pretend that several people are
  3767. -logged in:
  3768. -
  3769. -     $ who
  3770. -     arnold   console Jan 22 19:57
  3771. -     miriam   ttyp0   Jan 23 14:19(:0.0)
  3772. -     bill     ttyp1   Jan 21 09:32(:0.0)
  3773. -     arnold   ttyp2   Jan 23 20:48(:0.0)
  3774. -
  3775. -   Here, the `$' is the usual shell prompt, at which I typed `who'.
  3776. -There are three people logged in, and I am logged in twice.  On
  3777. -traditional Unix systems, user names are never more than eight
  3778. -characters long.  This little bit of trivia will be useful later.  The
  3779. -output of `who' is nice, but the data is not all that exciting.
  3780. -
  3781. -
  3782. -File: textutils.info,  Node: The `cut' command,  Next: The `sort' command,  Prev: The `who' command,  Up: Opening the software toolbox
  3783. -
  3784. -The `cut' command
  3785. -=================
  3786. -
  3787. -   The next program we'll look at is the `cut' command.  This program
  3788. -cuts out columns or fields of input data.  For example, we can tell it
  3789. -to print just the login name and full name from the `/etc/passwd file'.
  3790. -The `/etc/passwd' file has seven fields, separated by colons:
  3791. -
  3792. -     arnold:xyzzy:2076:10:Arnold D. Robbins:/home/arnold:/bin/ksh
  3793. -
  3794. -   To get the first and fifth fields, we would use cut like this:
  3795. -
  3796. -     $ cut -d: -f1,5 /etc/passwd
  3797. -     root:Operator
  3798. -     ...
  3799. -     arnold:Arnold D. Robbins
  3800. -     miriam:Miriam A. Robbins
  3801. -     ...
  3802. -
  3803. -   With the `-c' option, `cut' will cut out specific characters (i.e.,
  3804. -columns) in the input lines.  This command looks like it might be
  3805. -useful for data filtering.
  3806. -
  3807. -
  3808. -File: textutils.info,  Node: The `sort' command,  Next: The `uniq' command,  Prev: The `cut' command,  Up: Opening the software toolbox
  3809. -
  3810. -The `sort' command
  3811. -==================
  3812. -
  3813. -   Next we'll look at the `sort' command.  This is one of the most
  3814. -powerful commands on a Unix-style system; one that you will often find
  3815. -yourself using when setting up fancy data plumbing. The `sort' command
  3816. -reads and sorts each file named on the command line.  It then merges
  3817. -the sorted data and writes it to standard output.  It will read
  3818. -standard input if no files are given on the command line (thus making
  3819. -it into a filter).  The sort is based on the machine collating sequence
  3820. -(ASCII) or based on  user-supplied ordering criteria.
  3821. -
  3822. -
  3823. -File: textutils.info,  Node: The `uniq' command,  Next: Putting the tools together,  Prev: The `sort' command,  Up: Opening the software toolbox
  3824. -
  3825. -The `uniq' command
  3826. -==================
  3827. -
  3828. -   Finally (at least for now), we'll look at the `uniq' program.  When
  3829. -sorting data, you will often end up with duplicate lines, lines that
  3830. -are identical.  Usually, all you need is one instance of each line.
  3831. -This is where `uniq' comes in. The `uniq' program reads its standard
  3832. -input, which it expects to be sorted.  It only prints out one copy of
  3833. -each duplicated line.  It does have several options.  Later on, we'll
  3834. -use the `-c' option, which prints each unique line, preceded by a count
  3835. -of the number of times that line occurred in the input.
  3836. -
  3837. diff -rup --new-file baseline/fsf/textutils/doc/textutils.info-3 amiga/fsf/textutils/doc/textutils.info-3
  3838. --- baseline/fsf/textutils/doc/textutils.info-3    Thu Jul 11 20:14:24 1996
  3839. +++ amiga/fsf/textutils/doc/textutils.info-3    Wed Dec 31 17:00:00 1969
  3840. @@ -1,784 +0,0 @@
  3841. -This is Info file ./textutils.info, produced by Makeinfo-1.63 from the
  3842. -input file textutils.texi.
  3843. -
  3844. -START-INFO-DIR-ENTRY
  3845. -* Text utilities: (textutils).          GNU text utilities.
  3846. -* cat: (textutils)cat invocation.               Concatenate and write files.
  3847. -* cksum: (textutils)cksum invocation.           Print POSIX CRC checksum.
  3848. -* comm: (textutils)comm invocation.             Compare sorted files by line.
  3849. -* csplit: (textutils)csplit invocation.         Split by context.
  3850. -* cut: (textutils)cut invocation.               Print selected parts of lines.
  3851. -* expand: (textutils)expand invocation.         Convert tabs to spaces.
  3852. -* fmt: (textutils)fmt invocation.               Reformat paragraph text.
  3853. -* fold: (textutils)fold invocation.             Wrap long input lines.
  3854. -* head: (textutils)head invocation.             Output the first part of files.
  3855. -* join: (textutils)join invocation.             Join lines on a common field.
  3856. -* md5sum: (textutils)md5sum invocation.         Print or check message-digests.
  3857. -* nl: (textutils)nl invocation.                 Number lines and write files.
  3858. -* od: (textutils)od invocation.                 Dump files in octal, etc.
  3859. -* paste: (textutils)paste invocation.           Merge lines of files.
  3860. -* pr: (textutils)pr invocation.                 Paginate or columnate files.
  3861. -* sort: (textutils)sort invocation.             Sort text files.
  3862. -* split: (textutils)split invocation.           Split into fixed-size pieces.
  3863. -* sum: (textutils)sum invocation.               Print traditional checksum.
  3864. -* tac: (textutils)tac invocation.               Reverse files.
  3865. -* tail: (textutils)tail invocation.             Output the last part of files.
  3866. -* tr: (textutils)tr invocation.                 Translate characters.
  3867. -* unexpand: (textutils)unexpand invocation.     Convert spaces to tabs.
  3868. -* uniq: (textutils)uniq invocation.             Uniqify files.
  3869. -* wc: (textutils)wc invocation.                 Byte, word, and line counts.
  3870. -END-INFO-DIR-ENTRY
  3871. -
  3872. -   This file documents the GNU text utilities.
  3873. -
  3874. -   Copyright (C) 1994, 95, 96 Free Software Foundation, Inc.
  3875. -
  3876. -   Permission is granted to make and distribute verbatim copies of this
  3877. -manual provided the copyright notice and this permission notice are
  3878. -preserved on all copies.
  3879. -
  3880. -   Permission is granted to copy and distribute modified versions of
  3881. -this manual under the conditions for verbatim copying, provided that
  3882. -the entire resulting derived work is distributed under the terms of a
  3883. -permission notice identical to this one.
  3884. -
  3885. -   Permission is granted to copy and distribute translations of this
  3886. -manual into another language, under the above conditions for modified
  3887. -versions, except that this permission notice may be stated in a
  3888. -translation approved by the Foundation.
  3889. -
  3890. -
  3891. -File: textutils.info,  Node: Putting the tools together,  Prev: The `uniq' command,  Up: Opening the software toolbox
  3892. -
  3893. -Putting the tools together
  3894. -==========================
  3895. -
  3896. -   Now, let's suppose this is a large BBS system with dozens of users
  3897. -logged in.  The management wants the SysOp to write a program that will
  3898. -generate a sorted list of logged in users.  Furthermore, even if a user
  3899. -is logged in multiple times, his or her name should only show up in the
  3900. -output once.
  3901. -
  3902. -   The SysOp could sit down with the system documentation and write a C
  3903. -program that did this. It would take perhaps a couple of hundred lines
  3904. -of code and about two hours to write it, test it, and debug it.
  3905. -However, knowing the software toolbox, the SysOp can instead start out
  3906. -by generating just a list of logged on users:
  3907. -
  3908. -     $ who | cut -c1-8
  3909. -     arnold
  3910. -     miriam
  3911. -     bill
  3912. -     arnold
  3913. -
  3914. -   Next, sort the list:
  3915. -
  3916. -     $ who | cut -c1-8 | sort
  3917. -     arnold
  3918. -     arnold
  3919. -     bill
  3920. -     miriam
  3921. -
  3922. -   Finally, run the sorted list through `uniq', to weed out duplicates:
  3923. -
  3924. -     $ who | cut -c1-8 | sort | uniq
  3925. -     arnold
  3926. -     bill
  3927. -     miriam
  3928. -
  3929. -   The `sort' command actually has a `-u' option that does what `uniq'
  3930. -does. However, `uniq' has other uses for which one cannot substitute
  3931. -`sort -u'.
  3932. -
  3933. -   The SysOp puts this pipeline into a shell script, and makes it
  3934. -available for all the users on the system:
  3935. -
  3936. -     # cat > /usr/local/bin/listusers
  3937. -     who | cut -c1-8 | sort | uniq
  3938. -     ^D
  3939. -     # chmod +x /usr/local/bin/listusers
  3940. -
  3941. -   There are four major points to note here.  First, with just four
  3942. -programs, on one command line, the SysOp was able to save about two
  3943. -hours worth of work.  Furthermore, the shell pipeline is just about as
  3944. -efficient as the C program would be, and it is much more efficient in
  3945. -terms of programmer time.  People time is much more expensive than
  3946. -computer time, and in our modern "there's never enough time to do
  3947. -everything" society, saving two hours of programmer time is no mean
  3948. -feat.
  3949. -
  3950. -   Second, it is also important to emphasize that with the
  3951. -*combination* of the tools, it is possible to do a special purpose job
  3952. -never imagined by the authors of the individual programs.
  3953. -
  3954. -   Third, it is also valuable to build up your pipeline in stages, as
  3955. -we did here.  This allows you to view the data at each stage in the
  3956. -pipeline, which helps you acquire the confidence that you are indeed
  3957. -using these tools correctly.
  3958. -
  3959. -   Finally, by bundling the pipeline in a shell script, other users can
  3960. -use your command, without having to remember the fancy plumbing you set
  3961. -up for them. In terms of how you run them, shell scripts and compiled
  3962. -programs are indistinguishable.
  3963. -
  3964. -   After the previous warm-up exercise, we'll look at two additional,
  3965. -more complicated pipelines.  For them, we need to introduce two more
  3966. -tools.
  3967. -
  3968. -   The first is the `tr' command, which stands for "transliterate." The
  3969. -`tr' command works on a character-by-character basis, changing
  3970. -characters. Normally it is used for things like mapping upper case to
  3971. -lower case:
  3972. -
  3973. -     $ echo ThIs ExAmPlE HaS MIXED case! | tr '[A-Z]' '[a-z]'
  3974. -     this example has mixed case!
  3975. -
  3976. -   There are several options of interest:
  3977. -
  3978. -`-c'
  3979. -     work on the complement of the listed characters, i.e., operations
  3980. -     apply to characters not in the given set
  3981. -
  3982. -`-d'
  3983. -     delete characters in the first set from the output
  3984. -
  3985. -`-s'
  3986. -     squeeze repeated characters in the output into just one character.
  3987. -
  3988. -   We will be using all three options in a moment.
  3989. -
  3990. -   The other command we'll look at is `comm'.  The `comm' command takes
  3991. -two sorted input files as input data, and prints out the files' lines
  3992. -in three columns.  The output columns are the data lines unique to the
  3993. -first file, the data lines unique to the second file, and the data
  3994. -lines that are common to both.  The `-1', `-2', and `-3' command line
  3995. -options omit the respective columns. (This is non-intuitive and takes a
  3996. -little getting used to.)  For example:
  3997. -
  3998. -     $ cat f1
  3999. -     11111
  4000. -     22222
  4001. -     33333
  4002. -     44444
  4003. -     $ cat f2
  4004. -     00000
  4005. -     22222
  4006. -     33333
  4007. -     55555
  4008. -     $ comm f1 f2
  4009. -             00000
  4010. -     11111
  4011. -                     22222
  4012. -                     33333
  4013. -     44444
  4014. -             55555
  4015. -
  4016. -   The single dash as a filename tells `comm' to read standard input
  4017. -instead of a regular file.
  4018. -
  4019. -   Now we're ready to build a fancy pipeline.  The first application is
  4020. -a word frequency counter.  This helps an author determine if he or she
  4021. -is over-using certain words.
  4022. -
  4023. -   The first step is to change the case of all the letters in our input
  4024. -file to one case.  "The" and "the" are the same word when doing
  4025. -counting.
  4026. -
  4027. -     $ tr '[A-Z]' '[a-z]' < whats.gnu | ...
  4028. -
  4029. -   The next step is to get rid of punctuation.  Quoted words and
  4030. -unquoted words should be treated identically; it's easiest to just get
  4031. -the punctuation out of the way.
  4032. -
  4033. -     $ tr '[A-Z]' '[a-z]' < whats.gnu | tr -cd '[A-Za-z0-9_ \012]' | ...
  4034. -
  4035. -   The second `tr' command operates on the complement of the listed
  4036. -characters, which are all the letters, the digits, the underscore, and
  4037. -the blank.  The `\012' represents the newline character; it has to be
  4038. -left alone.  (The ASCII TAB character should also be included for good
  4039. -measure in a production script.)
  4040. -
  4041. -   At this point, we have data consisting of words separated by blank
  4042. -space.  The words only contain alphanumeric characters (and the
  4043. -underscore).  The next step is break the data apart so that we have one
  4044. -word per line. This makes the counting operation much easier, as we
  4045. -will see shortly.
  4046. -
  4047. -     $ tr '[A-Z]' '[a-z]' < whats.gnu | tr -cd '[A-Za-z0-9_ \012]' |
  4048. -     > tr -s '[ ]' '\012' | ...
  4049. -
  4050. -   This command turns blanks into newlines.  The `-s' option squeezes
  4051. -multiple newline characters in the output into just one.  This helps us
  4052. -avoid blank lines. (The `>' is the shell's "secondary prompt." This is
  4053. -what the shell prints when it notices you haven't finished typing in
  4054. -all of a command.)
  4055. -
  4056. -   We now have data consisting of one word per line, no punctuation,
  4057. -all one case.  We're ready to count each word:
  4058. -
  4059. -     $ tr '[A-Z]' '[a-z]' < whats.gnu | tr -cd '[A-Za-z0-9_ \012]' |
  4060. -     > tr -s '[ ]' '\012' | sort | uniq -c | ...
  4061. -
  4062. -   At this point, the data might look something like this:
  4063. -
  4064. -       60 a
  4065. -        2 able
  4066. -        6 about
  4067. -        1 above
  4068. -        2 accomplish
  4069. -        1 acquire
  4070. -        1 actually
  4071. -        2 additional
  4072. -
  4073. -   The output is sorted by word, not by count!  What we want is the most
  4074. -frequently used words first.  Fortunately, this is easy to accomplish,
  4075. -with the help of two more `sort' options:
  4076. -
  4077. -`-n'
  4078. -     do a numeric sort, not an ASCII one
  4079. -
  4080. -`-r'
  4081. -     reverse the order of the sort
  4082. -
  4083. -   The final pipeline looks like this:
  4084. -
  4085. -     $ tr '[A-Z]' '[a-z]' < whats.gnu | tr -cd '[A-Za-z0-9_ \012]' |
  4086. -     > tr -s '[ ]' '\012' | sort | uniq -c | sort -nr
  4087. -      156 the
  4088. -       60 a
  4089. -       58 to
  4090. -       51 of
  4091. -       51 and
  4092. -      ...
  4093. -
  4094. -   Whew!  That's a lot to digest.  Yet, the same principles apply. With
  4095. -six commands, on two lines (really one long one split for convenience),
  4096. -we've created a program that does something interesting and useful, in
  4097. -much less time than we could have written a C program to do the same
  4098. -thing.
  4099. -
  4100. -   A minor modification to the above pipeline can give us a simple
  4101. -spelling checker!  To determine if you've spelled a word correctly, all
  4102. -you have to do is look it up in a dictionary.  If it is not there, then
  4103. -chances are that your spelling is incorrect.  So, we need a dictionary.
  4104. -If you have the Slackware Linux distribution, you have the file
  4105. -`/usr/lib/ispell/ispell.words', which is a sorted, 38,400 word
  4106. -dictionary.
  4107. -
  4108. -   Now, how to compare our file with the dictionary?  As before, we
  4109. -generate a sorted list of words, one per line:
  4110. -
  4111. -     $ tr '[A-Z]' '[a-z]' < whats.gnu | tr -cd '[A-Za-z0-9_ \012]' |
  4112. -     > tr -s '[ ]' '\012' | sort -u | ...
  4113. -
  4114. -   Now, all we need is a list of words that are *not* in the
  4115. -dictionary.  Here is where the `comm' command comes in.
  4116. -
  4117. -     $ tr '[A-Z]' '[a-z]' < whats.gnu | tr -cd '[A-Za-z0-9_ \012]' |
  4118. -     > tr -s '[ ]' '\012' | sort -u |
  4119. -     > comm -23 - /usr/lib/ispell/ispell.words
  4120. -
  4121. -   The `-2' and `-3' options eliminate lines that are only in the
  4122. -dictionary (the second file), and lines that are in both files.  Lines
  4123. -only in the first file (standard input, our stream of words), are words
  4124. -that are not in the dictionary.  These are likely candidates for
  4125. -spelling errors.  This pipeline was the first cut at a production
  4126. -spelling checker on Unix.
  4127. -
  4128. -   There are some other tools that deserve brief mention.
  4129. -
  4130. -`grep'
  4131. -     search files for text that matches a regular expression
  4132. -
  4133. -`egrep'
  4134. -     like `grep', but with more powerful regular expressions
  4135. -
  4136. -`wc'
  4137. -     count lines, words, characters
  4138. -
  4139. -`tee'
  4140. -     a T-fitting for data pipes, copies data to files and to standard
  4141. -     output
  4142. -
  4143. -`sed'
  4144. -     the stream editor, an advanced tool
  4145. -
  4146. -`awk'
  4147. -     a data manipulation language, another advanced tool
  4148. -
  4149. -   The software tools philosophy also espoused the following bit of
  4150. -advice: "Let someone else do the hard part." This means, take something
  4151. -that gives you most of what you need, and then massage it the rest of
  4152. -the way until it's in the form that you want.
  4153. -
  4154. -   To summarize:
  4155. -
  4156. -  1. Each program should do one thing well. No more, no less.
  4157. -
  4158. -  2. Combining programs with appropriate plumbing leads to results where
  4159. -     the whole is greater than the sum of the parts.  It also leads to
  4160. -     novel uses of programs that the authors might never have imagined.
  4161. -
  4162. -  3. Programs should never print extraneous header or trailer data,
  4163. -     since these could get sent on down a pipeline. (A point we didn't
  4164. -     mention earlier.)
  4165. -
  4166. -  4. Let someone else do the hard part.
  4167. -
  4168. -  5. Know your toolbox! Use each program appropriately. If you don't
  4169. -     have an appropriate tool, build one.
  4170. -
  4171. -   As of this writing, all the programs we've discussed are available
  4172. -via anonymous `ftp' from `prep.ai.mit.edu' as
  4173. -`/pub/gnu/textutils-1.9.tar.gz' directory.(1)
  4174. -
  4175. -   None of what I have presented in this column is new. The Software
  4176. -Tools philosophy was first introduced in the book `Software Tools', by
  4177. -Brian Kernighan and P.J. Plauger (Addison-Wesley, ISBN 0-201-03669-X).
  4178. -This book showed how to write and use software tools.   It was written
  4179. -in 1976, using a preprocessor for FORTRAN named `ratfor' (RATional
  4180. -FORtran).  At the time, C was not as ubiquitous as it is now; FORTRAN
  4181. -was.  The last chapter presented a `ratfor' to FORTRAN processor,
  4182. -written in `ratfor'. `ratfor' looks an awful lot like C; if you know C,
  4183. -you won't have any problem following the code.
  4184. -
  4185. -   In 1981, the book was updated and made available as `Software Tools
  4186. -in Pascal' (Addison-Wesley, ISBN 0-201-10342-7).  Both books remain in
  4187. -print, and are well worth reading if you're a programmer.  They
  4188. -certainly made a major change in how I view programming.
  4189. -
  4190. -   Initially, the programs in both books were available (on 9-track
  4191. -tape) from Addison-Wesley.  Unfortunately, this is no longer the case,
  4192. -although you might be able to find copies floating around the Internet.
  4193. -For a number of years, there was an active Software Tools Users Group,
  4194. -whose members had ported the original `ratfor' programs to essentially
  4195. -every computer system with a FORTRAN compiler.  The popularity of the
  4196. -group waned in the middle '80s as Unix began to spread beyond
  4197. -universities.
  4198. -
  4199. -   With the current proliferation of GNU code and other clones of Unix
  4200. -programs, these programs now receive little attention; modern C
  4201. -versions are much more efficient and do more than these programs do.
  4202. -Nevertheless, as exposition of good programming style, and evangelism
  4203. -for a still-valuable philosophy, these books are unparalleled, and I
  4204. -recommend them highly.
  4205. -
  4206. -   Acknowledgment: I would like to express my gratitude to Brian
  4207. -Kernighan of Bell Labs, the original Software Toolsmith, for reviewing
  4208. -this column.
  4209. -
  4210. -   ---------- Footnotes ----------
  4211. -
  4212. -   (1)  Version 1.9 was current when this column was written. Check the
  4213. -nearest GNU archive for the current version.
  4214. -
  4215. -
  4216. -File: textutils.info,  Node: Index,  Prev: Opening the software toolbox,  Up: Top
  4217. -
  4218. -Index
  4219. -*****
  4220. -
  4221. -* Menu:
  4222. -
  4223. -* +COUNT:                               tail invocation.
  4224. -* +N:                                   uniq invocation.
  4225. -* -address-radix:                       od invocation.
  4226. -* -all:                                 unexpand invocation.
  4227. -* -before:                              tac invocation.
  4228. -* -binary:                              md5sum invocation.
  4229. -* -body-numbering:                      nl invocation.
  4230. -* -bytes <1>:                           cut invocation.
  4231. -* -bytes <1>:                           wc invocation.
  4232. -* -bytes <1>:                           split invocation.
  4233. -* -bytes <1>:                           tail invocation.
  4234. -* -bytes <1>:                           head invocation.
  4235. -* -bytes:                               fold invocation.
  4236. -* -characters:                          cut invocation.
  4237. -* -chars:                               wc invocation.
  4238. -* -check-chars:                         uniq invocation.
  4239. -* -count:                               uniq invocation.
  4240. -* -crown-margin:                        fmt invocation.
  4241. -* -delimiter:                           cut invocation.
  4242. -* -delimiters:                          paste invocation.
  4243. -* -digits:                              csplit invocation.
  4244. -* -elide-empty-files:                   csplit invocation.
  4245. -* -fields:                              cut invocation.
  4246. -* -follow:                              tail invocation.
  4247. -* -footer-numbering:                    nl invocation.
  4248. -* -format:                              od invocation.
  4249. -* -header-numbering:                    nl invocation.
  4250. -* -help:                                Common options.
  4251. -* -ignore-case <1>:                     join invocation.
  4252. -* -ignore-case:                         uniq invocation.
  4253. -* -initial:                             expand invocation.
  4254. -* -join-blank-lines:                    nl invocation.
  4255. -* -keep-files:                          csplit invocation.
  4256. -* -line-bytes:                          split invocation.
  4257. -* -lines <1>:                           wc invocation.
  4258. -* -lines <1>:                           split invocation.
  4259. -* -lines <1>:                           tail invocation.
  4260. -* -lines:                               head invocation.
  4261. -* -no-renumber:                         nl invocation.
  4262. -* -number:                              cat invocation.
  4263. -* -number-format:                       nl invocation.
  4264. -* -number-nonblank:                     cat invocation.
  4265. -* -number-separator:                    nl invocation.
  4266. -* -number-width:                        nl invocation.
  4267. -* -only-delimited:                      cut invocation.
  4268. -* -output-duplicates:                   od invocation.
  4269. -* -page-increment:                      nl invocation.
  4270. -* -prefix:                              csplit invocation.
  4271. -* -quiet <1>:                           csplit invocation.
  4272. -* -quiet <1>:                           tail invocation.
  4273. -* -quiet:                               head invocation.
  4274. -* -read-bytes:                          od invocation.
  4275. -* -regex:                               tac invocation.
  4276. -* -repeated:                            uniq invocation.
  4277. -* -section-delimiter:                   nl invocation.
  4278. -* -separator:                           tac invocation.
  4279. -* -serial:                              paste invocation.
  4280. -* -show-all:                            cat invocation.
  4281. -* -show-ends:                           cat invocation.
  4282. -* -show-nonprinting:                    cat invocation.
  4283. -* -show-tabs:                           cat invocation.
  4284. -* -silent <1>:                          csplit invocation.
  4285. -* -silent <1>:                          tail invocation.
  4286. -* -silent:                              head invocation.
  4287. -* -skip-bytes:                          od invocation.
  4288. -* -skip-chars:                          uniq invocation.
  4289. -* -skip-fields:                         uniq invocation.
  4290. -* -spaces:                              fold invocation.
  4291. -* -split-only:                          fmt invocation.
  4292. -* -squeeze-blank:                       cat invocation.
  4293. -* -starting-line-number:                nl invocation.
  4294. -* -status:                              md5sum invocation.
  4295. -* -string:                              md5sum invocation.
  4296. -* -strings:                             od invocation.
  4297. -* -suffix:                              csplit invocation.
  4298. -* -sysv:                                sum invocation.
  4299. -* -tabs <1>:                            unexpand invocation.
  4300. -* -tabs:                                expand invocation.
  4301. -* -tagged-paragraph:                    fmt invocation.
  4302. -* -text:                                md5sum invocation.
  4303. -* -traditional:                         od invocation.
  4304. -* -uniform-spacing:                     fmt invocation.
  4305. -* -unique:                              uniq invocation.
  4306. -* -verbose <1>:                         split invocation.
  4307. -* -verbose <1>:                         tail invocation.
  4308. -* -verbose:                             head invocation.
  4309. -* -version:                             Common options.
  4310. -* -warn:                                md5sum invocation.
  4311. -* -width <1>:                           fold invocation.
  4312. -* -width <1>:                           fmt invocation.
  4313. -* -width:                               od invocation.
  4314. -* -words:                               wc invocation.
  4315. -* -1 <1>:                               join invocation.
  4316. -* -1:                                   comm invocation.
  4317. -* -2 <1>:                               join invocation.
  4318. -* -2:                                   comm invocation.
  4319. -* -3:                                   comm invocation.
  4320. -* -COLUMN:                              pr invocation.
  4321. -* -COUNT <1>:                           tail invocation.
  4322. -* -COUNT:                               head invocation.
  4323. -* -N:                                   uniq invocation.
  4324. -* -TAB <1>:                             unexpand invocation.
  4325. -* -TAB:                                 expand invocation.
  4326. -* -WIDTH:                               fmt invocation.
  4327. -* -a <1>:                               unexpand invocation.
  4328. -* -a <1>:                               join invocation.
  4329. -* -a:                                   pr invocation.
  4330. -* -A <1>:                               od invocation.
  4331. -* -A:                                   cat invocation.
  4332. -* -b <1>:                               cut invocation.
  4333. -* -b <1>:                               sort invocation.
  4334. -* -b <1>:                               md5sum invocation.
  4335. -* -b <1>:                               csplit invocation.
  4336. -* -b <1>:                               split invocation.
  4337. -* -b <1>:                               fold invocation.
  4338. -* -b <1>:                               pr invocation.
  4339. -* -b <1>:                               od invocation.
  4340. -* -b <1>:                               nl invocation.
  4341. -* -b <1>:                               tac invocation.
  4342. -* -b:                                   cat invocation.
  4343. -* -c <1>:                               cut invocation.
  4344. -* -c <1>:                               uniq invocation.
  4345. -* -c <1>:                               sort invocation.
  4346. -* -c:                                   wc invocation.
  4347. -* -C:                                   split invocation.
  4348. -* -c <1>:                               tail invocation.
  4349. -* -c <1>:                               head invocation.
  4350. -* -c <1>:                               pr invocation.
  4351. -* -c <1>:                               fmt invocation.
  4352. -* -c:                                   od invocation.
  4353. -* -d <1>:                               paste invocation.
  4354. -* -d <1>:                               cut invocation.
  4355. -* -d <1>:                               uniq invocation.
  4356. -* -d <1>:                               sort invocation.
  4357. -* -d <1>:                               pr invocation.
  4358. -* -d <1>:                               od invocation.
  4359. -* -d:                                   nl invocation.
  4360. -* -e <1>:                               join invocation.
  4361. -* -e <1>:                               pr invocation.
  4362. -* -e:                                   cat invocation.
  4363. -* -f <1>:                               cut invocation.
  4364. -* -f <1>:                               uniq invocation.
  4365. -* -f <1>:                               sort invocation.
  4366. -* -f <1>:                               csplit invocation.
  4367. -* -f:                                   tail invocation.
  4368. -* -F:                                   pr invocation.
  4369. -* -f <1>:                               od invocation.
  4370. -* -f:                                   nl invocation.
  4371. -* -g:                                   sort invocation.
  4372. -* -h <1>:                               pr invocation.
  4373. -* -h <1>:                               od invocation.
  4374. -* -h:                                   nl invocation.
  4375. -* -i <1>:                               expand invocation.
  4376. -* -i <1>:                               join invocation.
  4377. -* -i <1>:                               uniq invocation.
  4378. -* -i <1>:                               sort invocation.
  4379. -* -i <1>:                               pr invocation.
  4380. -* -i <1>:                               od invocation.
  4381. -* -i:                                   nl invocation.
  4382. -* -j:                                   od invocation.
  4383. -* -j1:                                  join invocation.
  4384. -* -j2:                                  join invocation.
  4385. -* -k <1>:                               sort invocation.
  4386. -* -k:                                   csplit invocation.
  4387. -* -l <1>:                               wc invocation.
  4388. -* -l <1>:                               split invocation.
  4389. -* -l <1>:                               pr invocation.
  4390. -* -l <1>:                               od invocation.
  4391. -* -l:                                   nl invocation.
  4392. -* -m <1>:                               sort invocation.
  4393. -* -m:                                   pr invocation.
  4394. -* -n <1>:                               cut invocation.
  4395. -* -n <1>:                               sort invocation.
  4396. -* -n <1>:                               csplit invocation.
  4397. -* -n <1>:                               tail invocation.
  4398. -* -n <1>:                               head invocation.
  4399. -* -n:                                   pr invocation.
  4400. -* -N:                                   od invocation.
  4401. -* -n <1>:                               nl invocation.
  4402. -* -n:                                   cat invocation.
  4403. -* -o <1>:                               sort invocation.
  4404. -* -o <1>:                               pr invocation.
  4405. -* -o:                                   od invocation.
  4406. -* -p:                                   nl invocation.
  4407. -* -q <1>:                               csplit invocation.
  4408. -* -q <1>:                               tail invocation.
  4409. -* -q:                                   head invocation.
  4410. -* -r <1>:                               sort invocation.
  4411. -* -r <1>:                               sum invocation.
  4412. -* -r <1>:                               pr invocation.
  4413. -* -r:                                   tac invocation.
  4414. -* -s <1>:                               paste invocation.
  4415. -* -s <1>:                               cut invocation.
  4416. -* -s <1>:                               uniq invocation.
  4417. -* -s <1>:                               sum invocation.
  4418. -* -s <1>:                               csplit invocation.
  4419. -* -s <1>:                               fold invocation.
  4420. -* -s <1>:                               pr invocation.
  4421. -* -s <1>:                               fmt invocation.
  4422. -* -s <1>:                               od invocation.
  4423. -* -s <1>:                               nl invocation.
  4424. -* -s <1>:                               tac invocation.
  4425. -* -s:                                   cat invocation.
  4426. -* -t <1>:                               unexpand invocation.
  4427. -* -t <1>:                               expand invocation.
  4428. -* -t <1>:                               sort invocation.
  4429. -* -t <1>:                               md5sum invocation.
  4430. -* -t <1>:                               pr invocation.
  4431. -* -t <1>:                               fmt invocation.
  4432. -* -t <1>:                               od invocation.
  4433. -* -t:                                   cat invocation.
  4434. -* -u <1>:                               uniq invocation.
  4435. -* -u <1>:                               sort invocation.
  4436. -* -u <1>:                               fmt invocation.
  4437. -* -u:                                   cat invocation.
  4438. -* -v <1>:                               tail invocation.
  4439. -* -v <1>:                               head invocation.
  4440. -* -v <1>:                               pr invocation.
  4441. -* -v <1>:                               od invocation.
  4442. -* -v <1>:                               nl invocation.
  4443. -* -v:                                   cat invocation.
  4444. -* -w <1>:                               uniq invocation.
  4445. -* -w <1>:                               md5sum invocation.
  4446. -* -w <1>:                               wc invocation.
  4447. -* -w <1>:                               fold invocation.
  4448. -* -w <1>:                               pr invocation.
  4449. -* -w <1>:                               fmt invocation.
  4450. -* -w <1>:                               od invocation.
  4451. -* -w:                                   nl invocation.
  4452. -* -x:                                   od invocation.
  4453. -* -z <1>:                               sort invocation.
  4454. -* -z:                                   csplit invocation.
  4455. -* 128-bit checksum:                     md5sum invocation.
  4456. -* 16-bit checksum:                      sum invocation.
  4457. -* across columns:                       pr invocation.
  4458. -* alnum:                                Character sets.
  4459. -* alpha:                                Character sets.
  4460. -* ASCII dump of files:                  od invocation.
  4461. -* backslash escapes:                    Character sets.
  4462. -* balancing columns:                    pr invocation.
  4463. -* binary input files:                   md5sum invocation.
  4464. -* blank:                                Character sets.
  4465. -* blank lines, numbering:               nl invocation.
  4466. -* blanks, ignoring leading:             sort invocation.
  4467. -* body, numbering:                      nl invocation.
  4468. -* BSD sum:                              sum invocation.
  4469. -* BSD tail:                             tail invocation.
  4470. -* bugs, reporting:                      Introduction.
  4471. -* byte count:                           wc invocation.
  4472. -* case folding:                         sort invocation.
  4473. -* cat:                                  cat invocation.
  4474. -* characters classes:                   Character sets.
  4475. -* checking for sortedness:              sort invocation.
  4476. -* checksum, 128-bit:                    md5sum invocation.
  4477. -* checksum, 16-bit:                     sum invocation.
  4478. -* cksum:                                cksum invocation.
  4479. -* cntrl:                                Character sets.
  4480. -* comm:                                 comm invocation.
  4481. -* common field, joining on:             join invocation.
  4482. -* common lines:                         comm invocation.
  4483. -* common options:                       Common options.
  4484. -* comparing sorted files:               comm invocation.
  4485. -* concatenate and write files:          cat invocation.
  4486. -* context splitting:                    csplit invocation.
  4487. -* converting tabs to spaces:            expand invocation.
  4488. -* copying files:                        cat invocation.
  4489. -* CRC checksum:                         cksum invocation.
  4490. -* crown margin:                         fmt invocation.
  4491. -* csplit:                               csplit invocation.
  4492. -* cut:                                  cut invocation.
  4493. -* cyclic redundancy check:              cksum invocation.
  4494. -* deleting characters:                  Squeezing.
  4495. -* differing lines:                      comm invocation.
  4496. -* digit:                                Character sets.
  4497. -* double spacing:                       pr invocation.
  4498. -* duplicate lines, outputting:          uniq invocation.
  4499. -* empty lines, numbering:               nl invocation.
  4500. -* entire files, output of:              Output of entire files.
  4501. -* equivalence classes:                  Character sets.
  4502. -* expand:                               expand invocation.
  4503. -* field separator character:            sort invocation.
  4504. -* file contents, dumping unambiguously: od invocation.
  4505. -* file offset radix:                    od invocation.
  4506. -* fingerprint, 128-bit:                 md5sum invocation.
  4507. -* first part of files, outputting:      head invocation.
  4508. -* fmt:                                  fmt invocation.
  4509. -* fold:                                 fold invocation.
  4510. -* folding long input lines:             fold invocation.
  4511. -* footers, numbering:                   nl invocation.
  4512. -* formatting file contents:             Formatting file contents.
  4513. -* general numeric sort:                 sort invocation.
  4514. -* graph:                                Character sets.
  4515. -* growing files:                        tail invocation.
  4516. -* head:                                 head invocation.
  4517. -* headers, numbering:                   nl invocation.
  4518. -* help, online:                         Common options.
  4519. -* hex dump of files:                    od invocation.
  4520. -* indenting lines:                      pr invocation.
  4521. -* initial part of files, outputting:    head invocation.
  4522. -* initial tabs, converting:             expand invocation.
  4523. -* input tabs:                           pr invocation.
  4524. -* introduction:                         Introduction.
  4525. -* join:                                 join invocation.
  4526. -* Knuth, Donald E.:                     fmt invocation.
  4527. -* last part of files, outputting:       tail invocation.
  4528. -* left margin:                          pr invocation.
  4529. -* line count:                           wc invocation.
  4530. -* line numbering:                       nl invocation.
  4531. -* line-breaking:                        fmt invocation.
  4532. -* line-by-line comparison:              comm invocation.
  4533. -* ln format for nl:                     nl invocation.
  4534. -* logical pages, numbering on:          nl invocation.
  4535. -* lower:                                Character sets.
  4536. -* md5sum:                               md5sum invocation.
  4537. -* merging files:                        paste invocation.
  4538. -* merging sorted files:                 sort invocation.
  4539. -* message-digest, 128-bit:              md5sum invocation.
  4540. -* months, sorting by:                   sort invocation.
  4541. -* multicolumn output, generating:       pr invocation.
  4542. -* nl:                                   nl invocation.
  4543. -* numbering lines:                      nl invocation.
  4544. -* numeric sort:                         sort invocation.
  4545. -* octal dump of files:                  od invocation.
  4546. -* od:                                   od invocation.
  4547. -* operating on characters:              Operating on characters.
  4548. -* operating on sorted files:            Operating on sorted files.
  4549. -* output file name prefix <1>:          csplit invocation.
  4550. -* output file name prefix:              split invocation.
  4551. -* output file name suffix:              csplit invocation.
  4552. -* output of entire files:               Output of entire files.
  4553. -* output of parts of files:             Output of parts of files.
  4554. -* output tabs:                          pr invocation.
  4555. -* overwriting of input, allowed:        sort invocation.
  4556. -* paragraphs, reformatting:             fmt invocation.
  4557. -* parts of files, output of:            Output of parts of files.
  4558. -* paste:                                paste invocation.
  4559. -* phone directory order:                sort invocation.
  4560. -* pieces, splitting a file into:        split invocation.
  4561. -* Plass, Michael F.:                    fmt invocation.
  4562. -* POSIX.2:                              Introduction.
  4563. -* POSIXLY_CORRECT:                      Warnings in tr.
  4564. -* pr:                                   pr invocation.
  4565. -* print:                                Character sets.
  4566. -* printing, preparing files for:        pr invocation.
  4567. -* punct:                                Character sets.
  4568. -* radix for file offsets:               od invocation.
  4569. -* ranges:                               Character sets.
  4570. -* reformatting paragraph text:          fmt invocation.
  4571. -* repeated characters:                  Character sets.
  4572. -* reverse sorting:                      sort invocation.
  4573. -* reversing files:                      tac invocation.
  4574. -* rn format for nl:                     nl invocation.
  4575. -* rz format for nl:                     nl invocation.
  4576. -* screen columns:                       fold invocation.
  4577. -* section delimiters of pages:          nl invocation.
  4578. -* sentences and line-breaking:          fmt invocation.
  4579. -* sort:                                 sort invocation.
  4580. -* sort field:                           sort invocation.
  4581. -* sort zero-terminated lines:           sort invocation.
  4582. -* sorted files, operations on:          Operating on sorted files.
  4583. -* sorting files:                        sort invocation.
  4584. -* space:                                Character sets.
  4585. -* specifying sets of characters:        Character sets.
  4586. -* split:                                split invocation.
  4587. -* splitting a file into pieces:         split invocation.
  4588. -* splitting a file into pieces by context: csplit invocation.
  4589. -* squeezing blank lines:                cat invocation.
  4590. -* squeezing repeat characters:          Squeezing.
  4591. -* string constants, outputting:         od invocation.
  4592. -* sum:                                  sum invocation.
  4593. -* summarizing files:                    Summarizing files.
  4594. -* System V sum:                         sum invocation.
  4595. -* tabs to spaces, converting:           expand invocation.
  4596. -* tabstops, setting:                    expand invocation.
  4597. -* tac:                                  tac invocation.
  4598. -* tagged paragraphs:                    fmt invocation.
  4599. -* tail:                                 tail invocation.
  4600. -* telephone directory order:            sort invocation.
  4601. -* text input files:                     md5sum invocation.
  4602. -* text utilities:                       Top.
  4603. -* text, reformatting:                   fmt invocation.
  4604. -* TMPDIR:                               sort invocation.
  4605. -* total counts:                         wc invocation.
  4606. -* tr:                                   tr invocation.
  4607. -* translating characters:               Translating.
  4608. -* type size:                            od invocation.
  4609. -* unexpand:                             unexpand invocation.
  4610. -* uniq:                                 uniq invocation.
  4611. -* uniqify files:                        uniq invocation.
  4612. -* uniqifying output:                    sort invocation.
  4613. -* unique lines, outputting:             uniq invocation.
  4614. -* unprintable characters, ignoring:     sort invocation.
  4615. -* upper:                                Character sets.
  4616. -* utilities for text handling:          Top.
  4617. -* verifying MD5 checksums:              md5sum invocation.
  4618. -* version number, finding:              Common options.
  4619. -* wc:                                   wc invocation.
  4620. -* word count:                           wc invocation.
  4621. -* wrapping long input lines:            fold invocation.
  4622. -* xdigit:                               Character sets.
  4623. -
  4624. -
  4625. diff -rup --new-file baseline/fsf/textutils/manifests/bin amiga/fsf/textutils/manifests/bin
  4626. --- baseline/fsf/textutils/manifests/bin    Wed Dec 31 17:00:00 1969
  4627. +++ amiga/fsf/textutils/manifests/bin    Sat Sep 28 00:00:00 1996
  4628. @@ -0,0 +1,61 @@
  4629. +COPYING
  4630. +COPYING.info
  4631. +bin/cat
  4632. +bin/cksum
  4633. +bin/comm
  4634. +bin/csplit
  4635. +bin/cut
  4636. +bin/expand
  4637. +bin/fmt
  4638. +bin/fold
  4639. +bin/head
  4640. +bin/join
  4641. +bin/md5sum
  4642. +bin/nl
  4643. +bin/od
  4644. +bin/paste
  4645. +bin/pr
  4646. +bin/sort
  4647. +bin/split
  4648. +bin/sum
  4649. +bin/tac
  4650. +bin/tail
  4651. +bin/tr
  4652. +bin/unexpand
  4653. +bin/uniq
  4654. +bin/wc
  4655. +dvi/textutils.dvi
  4656. +guide/textutils.guide
  4657. +info/textutils.info
  4658. +info/textutils.info-1
  4659. +info/textutils.info-2
  4660. +info/textutils.info-3
  4661. +man/man1/cat.1
  4662. +man/man1/cksum.1
  4663. +man/man1/comm.1
  4664. +man/man1/csplit.1
  4665. +man/man1/cut.1
  4666. +man/man1/expand.1
  4667. +man/man1/fmt.1
  4668. +man/man1/fold.1
  4669. +man/man1/head.1
  4670. +man/man1/join.1
  4671. +man/man1/md5sum.1
  4672. +man/man1/nl.1
  4673. +man/man1/od.1
  4674. +man/man1/paste.1
  4675. +man/man1/pr.1
  4676. +man/man1/sort.1
  4677. +man/man1/split.1
  4678. +man/man1/sum.1
  4679. +man/man1/tac.1
  4680. +man/man1/tail.1
  4681. +man/man1/tr.1
  4682. +man/man1/unexpand.1
  4683. +man/man1/uniq.1
  4684. +man/man1/wc.1
  4685. +ps/textutils.ps
  4686. +share/locale/de/LC_MESSAGES/textutils.mo
  4687. +share/locale/fr/LC_MESSAGES/textutils.mo
  4688. +share/locale/ko/LC_MESSAGES/textutils.mo
  4689. +share/locale/nl/LC_MESSAGES/textutils.mo
  4690. diff -rup --new-file baseline/fsf/textutils/manifests/src amiga/fsf/textutils/manifests/src
  4691. --- baseline/fsf/textutils/manifests/src    Wed Dec 31 17:00:00 1969
  4692. +++ amiga/fsf/textutils/manifests/src    Sat Sep 28 00:00:00 1996
  4693. @@ -0,0 +1,158 @@
  4694. +fsf/textutils/ABOUT-NLS
  4695. +fsf/textutils/AUTHORS
  4696. +fsf/textutils/COPYING
  4697. +fsf/textutils/ChangeLog
  4698. +fsf/textutils/INSTALL
  4699. +fsf/textutils/Makefile.am
  4700. +fsf/textutils/Makefile.in
  4701. +fsf/textutils/NEWS
  4702. +fsf/textutils/Product-Info
  4703. +fsf/textutils/README
  4704. +fsf/textutils/TODO
  4705. +fsf/textutils/acconfig.h
  4706. +fsf/textutils/aclocal.m4
  4707. +fsf/textutils/config.h.in
  4708. +fsf/textutils/configure
  4709. +fsf/textutils/configure.in
  4710. +fsf/textutils/doc/Makefile.am
  4711. +fsf/textutils/doc/Makefile.in
  4712. +fsf/textutils/doc/mdate-sh
  4713. +fsf/textutils/doc/stamp-vti
  4714. +fsf/textutils/doc/texinfo.tex
  4715. +fsf/textutils/doc/textutils.texi
  4716. +fsf/textutils/doc/version.texi
  4717. +fsf/textutils/install-sh
  4718. +fsf/textutils/intl/ChangeLog
  4719. +fsf/textutils/intl/Makefile.in
  4720. +fsf/textutils/intl/VERSION
  4721. +fsf/textutils/intl/bindtextdom.c
  4722. +fsf/textutils/intl/cat-compat.c
  4723. +fsf/textutils/intl/dcgettext.c
  4724. +fsf/textutils/intl/dgettext.c
  4725. +fsf/textutils/intl/explodename.c
  4726. +fsf/textutils/intl/finddomain.c
  4727. +fsf/textutils/intl/gettext.c
  4728. +fsf/textutils/intl/gettext.h
  4729. +fsf/textutils/intl/gettextP.h
  4730. +fsf/textutils/intl/hash-string.h
  4731. +fsf/textutils/intl/intl-compat.c
  4732. +fsf/textutils/intl/l10nflist.c
  4733. +fsf/textutils/intl/libgettext.h
  4734. +fsf/textutils/intl/linux-msg.sed
  4735. +fsf/textutils/intl/loadinfo.h
  4736. +fsf/textutils/intl/loadmsgcat.c
  4737. +fsf/textutils/intl/localealias.c
  4738. +fsf/textutils/intl/po2tbl.sed.in
  4739. +fsf/textutils/intl/textdomain.c
  4740. +fsf/textutils/intl/xopen-msg.sed
  4741. +fsf/textutils/lib/Makefile.am
  4742. +fsf/textutils/lib/Makefile.in
  4743. +fsf/textutils/lib/alloca.c
  4744. +fsf/textutils/lib/error.c
  4745. +fsf/textutils/lib/error.h
  4746. +fsf/textutils/lib/full-write.c
  4747. +fsf/textutils/lib/getline.c
  4748. +fsf/textutils/lib/getline.h
  4749. +fsf/textutils/lib/getopt.c
  4750. +fsf/textutils/lib/getopt.h
  4751. +fsf/textutils/lib/getopt1.c
  4752. +fsf/textutils/lib/linebuffer.c
  4753. +fsf/textutils/lib/linebuffer.h
  4754. +fsf/textutils/lib/long-options.c
  4755. +fsf/textutils/lib/long-options.h
  4756. +fsf/textutils/lib/md5.c
  4757. +fsf/textutils/lib/md5.h
  4758. +fsf/textutils/lib/memcasecmp.c
  4759. +fsf/textutils/lib/memcasecmp.h
  4760. +fsf/textutils/lib/memchr.c
  4761. +fsf/textutils/lib/memcmp.c
  4762. +fsf/textutils/lib/memcpy.c
  4763. +fsf/textutils/lib/memmove.c
  4764. +fsf/textutils/lib/memset.c
  4765. +fsf/textutils/lib/regex.c
  4766. +fsf/textutils/lib/regex.h
  4767. +fsf/textutils/lib/rx.c
  4768. +fsf/textutils/lib/rx.h
  4769. +fsf/textutils/lib/safe-read.c
  4770. +fsf/textutils/lib/stpcpy.c
  4771. +fsf/textutils/lib/strpbrk.c
  4772. +fsf/textutils/lib/strtod.c
  4773. +fsf/textutils/lib/strtol.c
  4774. +fsf/textutils/lib/strtoul.c
  4775. +fsf/textutils/lib/xmalloc.c
  4776. +fsf/textutils/lib/xstrtod.c
  4777. +fsf/textutils/lib/xstrtod.h
  4778. +fsf/textutils/lib/xstrtol.c
  4779. +fsf/textutils/lib/xstrtol.h
  4780. +fsf/textutils/lib/xstrtoul.c
  4781. +fsf/textutils/lib/xstrtoul.h
  4782. +fsf/textutils/man/Makefile.am
  4783. +fsf/textutils/man/Makefile.in
  4784. +fsf/textutils/man/cat.1
  4785. +fsf/textutils/man/cksum.1
  4786. +fsf/textutils/man/comm.1
  4787. +fsf/textutils/man/csplit.1
  4788. +fsf/textutils/man/cut.1
  4789. +fsf/textutils/man/expand.1
  4790. +fsf/textutils/man/fmt.1
  4791. +fsf/textutils/man/fold.1
  4792. +fsf/textutils/man/head.1
  4793. +fsf/textutils/man/join.1
  4794. +fsf/textutils/man/md5sum.1
  4795. +fsf/textutils/man/nl.1
  4796. +fsf/textutils/man/od.1
  4797. +fsf/textutils/man/paste.1
  4798. +fsf/textutils/man/pr.1
  4799. +fsf/textutils/man/sort.1
  4800. +fsf/textutils/man/split.1
  4801. +fsf/textutils/man/sum.1
  4802. +fsf/textutils/man/tac.1
  4803. +fsf/textutils/man/tail.1
  4804. +fsf/textutils/man/tr.1
  4805. +fsf/textutils/man/unexpand.1
  4806. +fsf/textutils/man/uniq.1
  4807. +fsf/textutils/man/wc.1
  4808. +fsf/textutils/manifests/bin
  4809. +fsf/textutils/manifests/src
  4810. +fsf/textutils/mkinstalldirs
  4811. +fsf/textutils/po/ChangeLog
  4812. +fsf/textutils/po/Makefile.in.in
  4813. +fsf/textutils/po/POTFILES.in
  4814. +fsf/textutils/po/cat-id-tbl.c
  4815. +fsf/textutils/po/de.po
  4816. +fsf/textutils/po/fr.po
  4817. +fsf/textutils/po/ko.po
  4818. +fsf/textutils/po/nl.po
  4819. +fsf/textutils/po/stamp-cat-id
  4820. +fsf/textutils/po/textutils.pot
  4821. +fsf/textutils/src/Makefile.am
  4822. +fsf/textutils/src/Makefile.in
  4823. +fsf/textutils/src/ansi2knr.1
  4824. +fsf/textutils/src/ansi2knr.c
  4825. +fsf/textutils/src/cat.c
  4826. +fsf/textutils/src/cksum.c
  4827. +fsf/textutils/src/comm.c
  4828. +fsf/textutils/src/csplit.c
  4829. +fsf/textutils/src/cut.c
  4830. +fsf/textutils/src/expand.c
  4831. +fsf/textutils/src/fmt.c
  4832. +fsf/textutils/src/fold.c
  4833. +fsf/textutils/src/head.c
  4834. +fsf/textutils/src/join.c
  4835. +fsf/textutils/src/md5-test.rfc
  4836. +fsf/textutils/src/md5sum.c
  4837. +fsf/textutils/src/nl.c
  4838. +fsf/textutils/src/od.c
  4839. +fsf/textutils/src/paste.c
  4840. +fsf/textutils/src/pr.c
  4841. +fsf/textutils/src/sort.c
  4842. +fsf/textutils/src/split.c
  4843. +fsf/textutils/src/sum.c
  4844. +fsf/textutils/src/system.h
  4845. +fsf/textutils/src/tac.c
  4846. +fsf/textutils/src/tail.c
  4847. +fsf/textutils/src/tr.c
  4848. +fsf/textutils/src/unexpand.c
  4849. +fsf/textutils/src/uniq.c
  4850. +fsf/textutils/src/wc.c
  4851. +fsf/textutils/stamp-h.in
  4852. diff -rup --new-file baseline/fsf/textutils/po/Makefile.in.in amiga/fsf/textutils/po/Makefile.in.in
  4853. --- baseline/fsf/textutils/po/Makefile.in.in    Tue Jul  9 16:07:18 1996
  4854. +++ amiga/fsf/textutils/po/Makefile.in.in    Sat Sep 28 00:00:00 1996
  4855. @@ -39,10 +39,10 @@ MKINSTALLDIRS = @MKINSTALLDIRS@
  4856.  
  4857.  CC = @CC@
  4858.  GENCAT = @GENCAT@
  4859. -GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
  4860. +GMSGFMT = PATH=../src:$$PATH && @GMSGFMT@
  4861.  MSGFMT = @MSGFMT@
  4862. -XGETTEXT = PATH=../src:$$PATH @XGETTEXT@
  4863. -MSGMERGE = PATH=../src:$$PATH msgmerge
  4864. +XGETTEXT = PATH=../src:$$PATH && @XGETTEXT@
  4865. +MSGMERGE = PATH=../src:$$PATH && msgmerge
  4866.  
  4867.  DEFS = @DEFS@
  4868.  CFLAGS = @CFLAGS@
  4869. @@ -78,7 +78,7 @@ INSTOBJEXT = @INSTOBJEXT@
  4870.      $(MSGFMT) -o $@ $<
  4871.  
  4872.  .po.gmo:
  4873. -    file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
  4874. +    file=`echo $* | sed 's,.*/,,'`.gmo \
  4875.        && rm -f $$file && $(GMSGFMT) -o $$file $<
  4876.  
  4877.  .po.cat:
  4878. Binary files baseline/fsf/textutils/po/de.gmo and amiga/fsf/textutils/po/de.gmo differ
  4879. Binary files baseline/fsf/textutils/po/fr.gmo and amiga/fsf/textutils/po/fr.gmo differ
  4880. Binary files baseline/fsf/textutils/po/ko.gmo and amiga/fsf/textutils/po/ko.gmo differ
  4881. Binary files baseline/fsf/textutils/po/nl.gmo and amiga/fsf/textutils/po/nl.gmo differ
  4882. diff -rup --new-file baseline/fsf/textutils/src/csplit.c amiga/fsf/textutils/src/csplit.c
  4883. --- baseline/fsf/textutils/src/csplit.c    Tue Apr 23 21:50:28 1996
  4884. +++ amiga/fsf/textutils/src/csplit.c    Sat Sep 28 00:00:00 1996
  4885. @@ -41,12 +41,12 @@
  4886.  # define INT_MAX ((int) (UINT_MAX >> 1))
  4887.  #endif
  4888.  
  4889. +#include "system.h"    /* Before regex to avoid clashes with system defines */
  4890.  #if WITH_REGEX
  4891.  # include <regex.h>
  4892.  #else
  4893.  # include <rx.h>
  4894.  #endif
  4895. -#include "system.h"
  4896.  #include "error.h"
  4897.  #include "xstrtoul.h"
  4898.  
  4899. diff -rup --new-file baseline/fsf/textutils/src/nl.c amiga/fsf/textutils/src/nl.c
  4900. --- baseline/fsf/textutils/src/nl.c    Tue Apr 23 21:50:28 1996
  4901. +++ amiga/fsf/textutils/src/nl.c    Sat Sep 28 00:00:00 1996
  4902. @@ -28,6 +28,7 @@
  4903.  # include <limits.h>
  4904.  #endif
  4905.  
  4906. +#include "system.h"    /* Before regex to avoid clashes with system defines */
  4907.  #if WITH_REGEX
  4908.  # include <regex.h>
  4909.  #else
  4910. @@ -43,7 +44,6 @@
  4911.  #endif
  4912.  
  4913.  #include "linebuffer.h"
  4914. -#include "system.h"
  4915.  #include "error.h"
  4916.  #include "xstrtol.h"
  4917.  
  4918. diff -rup --new-file baseline/fsf/textutils/src/tac.c amiga/fsf/textutils/src/tac.c
  4919. --- baseline/fsf/textutils/src/tac.c    Tue Apr 23 21:50:28 1996
  4920. +++ amiga/fsf/textutils/src/tac.c    Sat Sep 28 00:00:00 1996
  4921. @@ -41,12 +41,12 @@ tac -r -s '.\|
  4922.  #include <getopt.h>
  4923.  #include <sys/types.h>
  4924.  #include <signal.h>
  4925. +#include "system.h"    /* Before regex to avoid clashes with system defines */
  4926.  #if WITH_REGEX
  4927.  # include <regex.h>
  4928.  #else
  4929.  # include <rx.h>
  4930.  #endif
  4931. -#include "system.h"
  4932.  #include "error.h"
  4933.  
  4934.  #ifndef STDC_HEADERS
  4935.