Index: chmod.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/chmod.c,v retrieving revision 1.113 diff -r1.113 chmod.c 352a353,365 > printf (_("\ > \n\ > Examples:\n\ > %s +x afile Make 'afile' executable.\n\ > %s g+r afile Make 'afile' readable by members of its group.\n\ > %s o-r afile Remove read access for everyone outside the group.\n\ > %s g=u afile Set group access on 'afile' to be the same as the users.\n\ > %s g+x,o-r af Add group execute and remove other read access on 'af'.\n\ > %s 600 afile Make 'afile' readable and writeable by the owner only.\n\ > %s -R a+w adir Directory 'adir' & all children made writeable by all.\n\ > "), > program_name, program_name, program_name, program_name, program_name, > program_name, program_name); Index: chroot.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/chroot.c,v retrieving revision 1.50 diff -r1.50 chroot.c 59a60,67 > printf (_("\ > \n\ > Examples:\n\ > %s /mnt/new Start a new shell with '/mnt/new' as its root.\n\ > %s /mnt/new bin/prog Run 'bin/prog' with '/mnt/new' as its root.\n\ > "), > program_name, program_name); > Index: cksum.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/cksum.c,v retrieving revision 1.77 diff -r1.77 cksum.c 278a279,286 > printf (_("\ > \n\ > Examples:\n\ > %s afile Print CRC checksum and byte count for 'afile'.\n\ > %s afile bfile Print separate checksums and byte counts for each file.\n\ > "), > program_name, program_name); > Index: comm.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/comm.c,v retrieving revision 1.85 diff -r1.85 comm.c 93a94,101 > printf (_("\ > \n\ > Examples:\n\ > %s file1 file2 Compare presorted files; display unique and common lines.\n\ > %s -1 -2 f1 f2 List lines common to both files.\n\ > %s -3 f1 f2 List lines unique to either file.\n\ > "), > program_name, program_name, program_name); Index: cp.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/cp.c,v retrieving revision 1.216 diff -r1.216 cp.c 252a253,262 > printf (_("\ > \n\ > Examples:\n\ > %s a n Make a copy of 'a' with the name 'n'.\n\ > %s a d Copy 'a' as a new file 'a' in the existing directory 'd'.\n\ > %s -a d1 d2 Copy directory 'd1' and its children into 'd2/d1'.\n\ > %s -ax d1 d2 As above but make sure to stay in the same filesystem.\n\ > "), > program_name, program_name, program_name, program_name); > Index: csplit.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/csplit.c,v retrieving revision 1.145 diff -r1.145 csplit.c 1489a1490,1496 > printf (_("\ > \n\ > Examples:\n\ > %s -z mailfile '/^From /' {*} Split a mail file, 1 message per file.\n\ > %s -f'message' -b'%%08d' ...... Add to above to name messages sensibly.\n\ > "), > program_name, program_name); Index: cut.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/cut.c,v retrieving revision 1.125 diff -r1.125 cut.c 234a235,243 > printf (_("\ > \n\ > Examples:\n\ > %s -d':' -f1 afile Print 1st field of each line of a : separated file.\n\ > %s -b2-5 afile Print 2nd to 5th bytes of each line of 'afile'.\n\ > %s -d',' -f1,5 afile Print 1st and 5th fields of a comma separated file.\n\ > %s -f3- afile Print 3rd and later fields of a tab separated file.\n\ > "), > program_name, program_name, program_name, program_name); Index: date.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/date.c,v retrieving revision 1.160 diff -r1.160 date.c 240a241,252 > printf (_("\ > \n\ > Examples:\n\ > %s Show the current date and time.\n\ > %s -I Show the date in ISO-8601 format.\n\ > %s '+%%A %%d %%B' Show as e.g. Sunday 08 May.\n\ > %s -s '8 May 2005 14:04:23' Set date to the given date and time.\n\ > %s -s '20120509 14:04:23' Set date to 9th May 2012 and time.\n\ > %s -d 20120509 -I Show the given date in ISO-8601 format.\n\ > "), > program_name, program_name, program_name, program_name, program_name, > program_name); Index: dd.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/dd.c,v retrieving revision 1.190 diff -r1.190 dd.c 501a502,511 > printf (_("\ > \n\ > Examples:\n\ > %s if=afile of=bfile Copy from 'afile' to 'bfile'.\n\ > %s if=/dev/zero of=af bs=1M count=10 Copy 10MiByte of zeros to 'af'.\n\ > %s if=a of=b conv=ucase Copy 'a' to 'b',convert to upper case.\n\ > %s if=a of=b ibs=1K skip=10 Copy skipping first 10KiB of input.\n\ > %s of=b obs=1 seek=50 conv=notrunc Write stdin over 'b' from 50 bytes on.\n\ > "), > program_name, program_name, program_name, program_name, program_name); Index: df.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/df.c,v retrieving revision 1.170 diff -r1.170 df.c 758a759,765 > printf (_("\ > \n\ > Examples:\n\ > %s -h Report space usage in convenient units.\n\ > %s /a/bdir Report usage on filesystem containing '/a/bdir'.\n\ > "), > program_name, program_name); Index: dircolors.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/dircolors.c,v retrieving revision 1.97 diff -r1.97 dircolors.c 121a122,128 > printf (_("\ > \n\ > Examples:\n\ > eval `%s -b` Set colours up on bash/sh - typically in .bashrc\n\ > eval `%s -c` Set colours up on csh\n\ > "), > program_name, program_name); Index: du.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/du.c,v retrieving revision 1.224 diff -r1.224 du.c 343a344,352 > printf (_("\ > \n\ > Examples:\n\ > %s -m adir Give total size of directory 'adir' & each subdir in MB.\n\ > %s -ms adir Give total size of 'adir' in MB.\n\ > %s -ms adir/* Give total size of each member in 'adir' in MB.\n\ > %s -hs adir/* As above but use most convenient units; note hard to sort.\n\ > "), > program_name, program_name, program_name, program_name); Index: echo.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/echo.c,v retrieving revision 1.61 diff -r1.61 echo.c 97a98,105 > printf (_("\ > \n\ > Examples:\n\ > %s a b c d Write 'a b c d' to standard output followed by a line feed.\n\ > %s -n a b c Write 'a b c' to standard output without line feed.\n\ > %s -n -e '\\a' Write a BEL (beep) to standard output.\n\ > "), > program_name, program_name, program_name); Index: env.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/env.c,v retrieving revision 1.63 diff -r1.63 env.c 132a133,143 > printf (_("\ > \n\ > Examples:\n\ > %s -i /bin/ls Run '/bin/ls' with an empty environment.\n\ > %s A=B prog Run 'prog' with existing env plus extra entry of A=B.\n\ > %s A=B prog c d As above passing arguments 'c' and 'd' to 'prog'.\n\ > %s -u DISPLAY prog Run 'prog' with exisitng env without 'DISPLAY' variable.\n\ > %s Print the existing environment.\n\ > "), > program_name, program_name, program_name, program_name, > program_name); Index: expand.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/expand.c,v retrieving revision 1.90 diff -r1.90 expand.c 131a132,140 > printf (_("\ > \n\ > Examples:\n\ > %s -t2 a Copy file 'a' to output expanding tabs; tabs set 2 spaces apart.\n\ > %s -t2,5,8 a As above with tabs at position 2, 5 and 8 (0 is left).\n\ > %s a b Expand tabs in 'a' & 'b' to output;tabs 8 spaces apart (default).\n\ > %s -i a Expand tabs in 'a' only at start of line.\n\ > "), > program_name, program_name, program_name, program_name); Index: expr.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/expr.c,v retrieving revision 1.108 diff -r1.108 expr.c 164a165,174 > printf (_("\ > \n\ > Examples:\n\ > %s 3 + 2 Writes 5 to standard output.\n\ > %s abc : 'a\\(.\\)c' Writes 'b' to standard output (regex match).\n\ > %s index abc b Writes 2; the index of 'b' in the string 'abc'.\n\ > %s index 'a+b' '\\+' Writes 2; the index of '+' in the string 'a+b'.\n\ > %s length '+' index Writes 5; + stops 'index' treated as keyword [GNU only].\n\ > "), > program_name, program_name, program_name, program_name, program_name); Index: factor.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/factor.c,v retrieving revision 1.77 diff -r1.77 factor.c 89a90,97 > printf (_("\ > \n\ > Examples:\n\ > %s 7 Writes '7: 7' to standard output.\n\ > %s 7 58 Writes factors for each of 7 and 58 on seperate lines.\n\ > %s Write factors for numbers read from standard input.\n\ > "), > program_name, program_name, program_name); Index: fmt.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/fmt.c,v retrieving revision 1.93 diff -r1.93 fmt.c 299a300,308 > printf (_("\ > \n\ > Examples:\n\ > %s Filter input formatting to 75 character width.\n\ > %s -w 132 afile Output 'afile' on standard output formatted to 132 columns.\n\ > %s -u -p NOTE: Format input lines starting with 'NOTE:' with uniform spacing.\n\ > !}%s (in vi) format the current paragraph.\n\ > "), > program_name, program_name, program_name, program_name); Index: fold.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/fold.c,v retrieving revision 1.86 diff -r1.86 fold.c 88a89,96 > printf (_("\ > \n\ > Examples:\n\ > %s Filter input breaking lines strictly on 80 column boundaries.\n\ > %s -b -w 64 Break on 64 byte boundaries (no control code processing).\n\ > %s -s afile Fold lines in 'afile' to 80 columns breaking at spaces.\n\ > "), > program_name, program_name, program_name); Index: groups.sh =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/groups.sh,v retrieving revision 1.19 diff -r1.19 groups.sh 31a32,35 > Examples: > $0 Report group membership of current process. > $0 auser Report group membership of user 'auser'. > Index: head.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/head.c,v retrieving revision 1.104 diff -r1.104 head.c 139a140,152 > printf (_("\ > \n\ > Examples:\n\ > %s afile Output first 10 lines of 'afile'.\n\ > %s Output first 10 lines of input.\n\ > %s -n 20 afile Output first 20 lines of 'afile'.\n\ > %s -n -10 afile Output all but last 10 lines of 'afile'.\n\ > %s -c 10 afile Output first 10 bytes of 'afile'.\n\ > %s af bf Output first 10 lines of 'af' and 'bf' with filename headers.\n\ > %s -q af bf Output first 10 lines of 'af' and then 'bf' with no headers.\n\ > "), > program_name, program_name, program_name, program_name, > program_name, program_name, program_name); Index: hostid.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/hostid.c,v retrieving revision 1.32 diff -r1.32 hostid.c 56a57,62 > printf (_("\ > \n\ > Examples:\n\ > %s Report a hostid for the current machine.\n\ > "), > program_name); Index: hostname.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/hostname.c,v retrieving revision 1.60 diff -r1.60 hostname.c 73a74,80 > printf (_("\ > \n\ > Examples:\n\ > %s Report machines hostname.\n\ > %s anewname Set hostname of machine to 'anewname'; does not persist accross reboot.\n\ > "), > program_name, program_name); Index: id.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/id.c,v retrieving revision 1.86 diff -r1.86 id.c 94a95,106 > printf (_("\ > \n\ > Examples:\n\ > %s Display all current processes uid and group information.\n\ > %s auser Display all uid and group information for 'auser'.\n\ > %s -un Print (effective) username of current process.\n\ > %s -u Print numeric (effective) uid of current process.\n\ > %s -ur Print numeric real uid of current process.\n\ > %s -G Print numeric gids of groups the current process belongs to.\n\ > "), > program_name, program_name, program_name, program_name, > program_name, program_name); Index: install.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/install.c,v retrieving revision 1.190 diff -r1.190 install.c 685a686,695 > printf (_("\ > \n\ > Examples:\n\ > %s f1 f2 Copy file 'f1' onto 'f2'.\n\ > %s -c f1 f2 d Copy files 'f1' and 'f2' to dir. 'd' (-c for compatibility).\n\ > %s -c -m 0644 f d Copy file 'f' into dir 'd' setting the mode to '0644'.\n\ > %s -c -o user f d Copy file 'f' into dir 'd' setting uid to 'user'.\n\ > %s -d d1 d2 Create directory 'd1' and 'd2' and parents as required.\n\ > "), > program_name, program_name, program_name, program_name, program_name); Index: join.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/join.c,v retrieving revision 1.143 diff -r1.143 join.c 170a171,184 > printf (_("\ > \n\ > Examples:\n\ > %s a b For each line with matching first field write one line with\n\ > %*s the rest of each matching input line from 'a' and then 'b'.\n\ > %*s Input files must be presorted.\n\ > %s -t',' a b As above but use ',' as field separator.\n\ > %s -i a b As first example but ignore case in the match.\n\ > %s -j 2 a b Use the second field of each line as the key to match.\n\ > "), > program_name, strlen(program_name),"", > strlen(program_name),"", > program_name, program_name, program_name); > Index: kill.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/kill.c,v retrieving revision 1.18 diff -r1.18 kill.c 119a120,121 > /* Putting this here means that it appears before the examples section > * in the man page rather than in it. */ 120a123,132 > printf (_("\ > \n\ > Examples:\n\ > %s nn Send process 'nn' a TERM signal (often terminates it nicely).\n\ > %s -9 nn Send process 'nn' a KILL signal (forcibly terminates).\n\ > %s -KILL nn As above but by name.\n\ > %s -KILL -1 Send KILL signal to all processes user is allowed to.\n\ > "), > program_name, program_name, program_name, program_name); > Index: link.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/link.c,v retrieving revision 1.16 diff -r1.16 link.c 58a59,64 > printf (_("\ > \n\ > Examples:\n\ > %s a b Create 'b' that is a hard link to file 'a'.\n\ > "), > program_name); Index: ln.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/ln.c,v retrieving revision 1.155 diff -r1.155 ln.c 373a374,382 > printf (_("\ > \n\ > Examples:\n\ > %s /some/name creates hard link ./name pointing /some/name.\n\ > %s -s /some/name creates symbolic link ./name pointing to /some/name.\n\ > %s -s /some/name myname creates link ./myname pointing to /some/name.\n\ > %s -s a b .. creates links ../a and ../b pointing to ./a and ./b.\n\ > "), > program_name, program_name, program_name, program_name); Index: ls.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/ls.c,v retrieving revision 1.404 diff -r1.404 ls.c 4248a4249,4283 > > printf (_("\nExamples:\n")); > switch (ls_mode) > { > case LS_MULTI_COL: > printf (_(" %s List (in columns) all files in current directory.\n"), > program_name); > break; > > case LS_LONG_FORMAT: > printf (_(" %s List all files in current directory with details.\n"), > program_name); > break; > > case LS_LS: > printf (_(" %s List all files in current directory (in columns on terminals).\n"), > program_name); > break; > } > > printf (_("\ > %s -lh List files with details in convenient units.\n\ > %s -lhs Also show space used on disc.\n\ > %s -la Include hidden (dot) files in listing.\n\ > %s -l afile Show details on 'afile'.\n\ > %s -l af bf Show details on files 'af' and 'bf'.\n\ > %s -l adir Show details on contents of directory 'adir'.\n\ > %s -ld adir Show details on directory 'adir' itself.\n\ > %s -R adir List files in directory 'adir' and all its children.\n\ > %s -lt Sort showing recently changed files first.\n\ > %s --color Use colour to highlight file/directory/link types.\n\ > "), > program_name, program_name, program_name, program_name, > program_name, program_name, program_name, program_name, > program_name, program_name); Index: md5sum.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/md5sum.c,v retrieving revision 1.144 diff -r1.144 md5sum.c 199a200,212 > printf (_("\ > \n\ > Examples:\n\ > %s afile Print sum for 'afile'.\n\ > %s -b afile Print sum for 'afile' force reading in binary mode.\n\ > %s -t afile Print sum for 'afile' force reading in text mode.\n\ > %s afile bfile Print sum for each of 'afile' and 'bfile'.\n\ > %s - Print sum for standard input.\n\ > %s -c checkfile For each file and sum in 'checkfile' compare it to sum\n\ > %*s of the actual files.\n\ > "), > program_name, program_name, program_name, program_name, > program_name, program_name, strlen(program_name), ""); Index: mkdir.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/mkdir.c,v retrieving revision 1.101 diff -r1.101 mkdir.c 72a73,81 > printf (_("\ > \n\ > Examples:\n\ > %s a Create directory 'a' in the current directory.\n\ > %s a b Create directories 'a' and 'b'.\n\ > %s a/b Create directory 'b' in pre-existing directory 'a'.\n\ > %s -p a/b Create directory 'b', creating 'a' if it doesn't exist.\n\ > "), > program_name, program_name, program_name, program_name); Index: mkfifo.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/mkfifo.c,v retrieving revision 1.78 diff -r1.78 mkfifo.c 67a68,75 > printf (_("\ > \n\ > Examples:\n\ > %s a Create fifo 'a' in the current directory.\n\ > %s a b Create fifos 'a' and 'b'.\n\ > %s -m 600 a Create fifo 'a' read/writeable only by the owner.\n\ > "), > program_name, program_name, program_name); Index: mknod.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/mknod.c,v retrieving revision 1.89 diff -r1.89 mknod.c 81a82,90 > printf (_("\ > \n\ > Examples:\n\ > %s fifo p Create fifo 'fifo' in the current directory.\n\ > %s -m og-rw fifo p As above but remove r/w from group and others.\n\ > %s bdev b 10 11 Create block device 'bdev' with major/minor numbers 10/11.\n\ > %s cdev c 10 11 Create char. device 'cdev' with major/minor numbers 10/11.\n\ > "), > program_name, program_name, program_name, program_name); Index: mv.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/mv.c,v retrieving revision 1.172 diff -r1.172 mv.c 337a338,348 > printf (_("\ > \n\ > Examples:\n\ > %s a n Rename 'a' as 'n'.\n\ > %s a d Move 'a' into pre-existing directory 'd'.\n\ > %s -i a n Rename 'a' to 'n' and prompt if 'n' already exists.\n\ > %s -f a n Rename 'a' to 'n' without prompting even if 'n' exists and is\n\ > %*s not writeable.\n\ > "), > program_name, program_name, program_name, program_name, > strlen(program_name), ""); Index: nice.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/nice.c,v retrieving revision 1.85 diff -r1.85 nice.c 90a91,99 > printf (_("\ > \n\ > Examples:\n\ > %s prog Execute 'prog' with reduced priority (by 10).\n\ > %s -n 10 prog As above.\n\ > %s Display current nice value.\n\ > %s -n -5 prog Run 'prog' with increased priority (must be privileged).\n\ > "), > program_name, program_name, program_name, program_name); Index: nl.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/nl.c,v retrieving revision 1.86 diff -r1.86 nl.c 223a224,239 > printf (_("\ > \n\ > Examples:\n\ > %s a b Output 'a' and 'b' numbering non-blank/delimeter body lines.\n\ > %s - As above but from standard input.\n\ > %s -n rz f As above; but right justify and zero pad line numbers.\n\ > %s -n ln f As above; but left justify.\n\ > %s -ba f Output file 'f' numbering all non-delimeter body lines.\n\ > %s -w 5 f Use 5 characters for numbering.\n\ > %s -s: f Seperate the number from the line by a ':' instead of tab.\n\ > %s -bp'hi' a Number only body lines that contain the regexp 'hi' from 'a'.\n\ > %s -i5 a Number lines incrementing by 5.\n\ > "), > program_name, program_name, program_name, program_name, > program_name, program_name, program_name, program_name, > program_name); Index: nohup.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/nohup.c,v retrieving revision 1.33 diff -r1.33 nohup.c 69a70,75 > printf (_("\ > \n\ > Examples:\n\ > %s prog p & Execute 'prog' with parameter 'p' ignoring hup backgrounded.\n\ > "), > program_name); Index: od.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/od.c,v retrieving revision 1.168 diff -r1.168 od.c 392a393,406 > printf (_("\ > \n\ > Examples:\n\ > %s -An -tx1 f Output file 'f' as bytes in hex with no addresses.\n\ > %s -tx1z f Displays 'f' with bytes in hex and ASCII to the right.\n\ > %s -Ax -tx1z f as above but give offsets in hex instead of octal.\n\ > %s -x f Output as two byte hex values (shorthand for -t x2).\n\ > %s -v -x f As above but output all lines including dupes.\n\ > %s -w32 -tx4 f Output 4 byte words in hex, 32 bytes per line.\n\ > %s -j2k f Skip first 2KiB, outputting the remainder in 2 byte octal.\n\ > %s -N10 f Output only the first 10 bytes.\n\ > "), > program_name, program_name, program_name, program_name, > program_name, program_name, program_name, program_name); Index: paste.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/paste.c,v retrieving revision 1.81 diff -r1.81 paste.c 436c436,446 < /* FIXME: add a couple of examples. */ --- > printf (_("\ > \n\ > Examples:\n\ > %s af bf Output contains one line for each line of each input file\n\ > %*s separated by tabs.\n\ > %s -d':' af bf As above but separate using : instead of tab.\n\ > %s -d':-' a b c Use ':' to separate a and b, and '-' to seperate b and c.\n\ > %s -s a b Join all of 'a' onto one output line and 'b' onto another.\n\ > "), > program_name, strlen(program_name), "", > program_name, program_name, program_name); Index: pathchk.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/pathchk.c,v retrieving revision 1.88 diff -r1.88 pathchk.c 108a109,125 > printf (_("\ > \n\ > Examples:\n\ > %s path Check for execute permissions on the directories in\n\ > %*s 'path', 'path' is not too long for the OS and the\n\ > %*s components of 'path' are short enough for the\n\ > %*s filesystem it resides on.\n\ > %s -P path Test for empty paths or components starting with '-'.\n\ > %s -p path Test for empty paths, lengths meeting POSIX limits,\n\ > %*s and use of unusual characters.\n\ > %s --portability path Equivalent to -p -P.\n\ > "), > program_name, > strlen(program_name),"", strlen(program_name),"", > strlen(program_name),"", > program_name, program_name, > strlen(program_name),"", program_name); Index: pinky.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/pinky.c,v retrieving revision 1.50 diff -r1.50 pinky.c 536a537,544 > printf (_("\ > \n\ > Examples:\n\ > %s Print information for all currently logged on users.\n\ > %s user Print information for all logins of 'user'.\n\ > %s -l user Print detailed information for 'user'.\n\ > "), > program_name, program_name, program_name); Index: pr.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/pr.c,v retrieving revision 1.157 diff -r1.157 pr.c 2875a2876,2888 > printf (_("\ > \n\ > Examples:\n\ > %s file Paginate 'file' to stdout.\n\ > %s -l 50 file Paginate to 50 line pages.\n\ > %s --columns=2 file Paginate and format into two columns. Note the\n\ > %*s input must be preformatted to fit the column.\n\ > %s -T --columns=2 file As above but only form columns, do not paginate.\n\ > %s -m file1 file2 Form seperate columns from each file and paginate.\n\ > "), > program_name, program_name, program_name, > strlen(program_name), "", > program_name, program_name); Index: printenv.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/printenv.c,v retrieving revision 1.57 diff -r1.57 printenv.c 70a71,77 > printf (_("\ > \n\ > Examples:\n\ > %s Print all environment variables and values.\n\ > %s DISPLAY Print the value of the 'DISPLAY' environment variable.\n\ > "), > program_name, program_name); Index: printf.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/printf.c,v retrieving revision 1.102 diff -r1.102 printf.c 144a145,157 > printf (_("\ > \n\ > Examples:\n\ > %s %%4d 58 Format '58' to 4 characters ( 58).\n\ > %s %%04d 58 Format '58' to 4 digits with leading 0's (0058).\n\ > %s '%%s\\n' hello Print the string 'hello' and then a new line.\n\ > %s '\\u20AC' Print a Euro symbol on any locale that supports it.\n\ > %s %%b 'hello\\n' Print the string expanding the \\n to a newline.\n\ > %s %%c 9 Print a '9' (not a tab as in C).\n\ > %s %%d \"'9\" Print the character value of '9' (57 in ASCII).\n\ > "), > program_name, program_name, program_name, program_name, program_name, > program_name, program_name); Index: readlink.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/readlink.c,v retrieving revision 1.20 diff -r1.20 readlink.c 86a87,95 > printf (_("\ > \n\ > Examples:\n\ > %s mylink Output the destination of 'mylink' which must be a symlink.\n\ > %s -e my/path Resolve symlinks, multiple /'s, ..'s and .'s in 'my/path'.\n\ > %s -f my/path As above but do not error if last component does not exist.\n\ > %s -m my/path As -e but treat any bad component as a directory.\n\ > "), > program_name, program_name, program_name, program_name); Index: rm.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/rm.c,v retrieving revision 1.137 diff -r1.137 rm.c 170a171,183 > printf (_("\ > \n\ > Examples:\n\ > %s afile Delete 'afile'.\n\ > %s -i afile Prompt and confirmed delete 'afile' if prompt confirmed.\n\ > %s -f afile Delete 'afile', delete write protected files without prompt\n\ > %*s and do not error if 'afile' does not exist.\n\ > %s -r aa Delete 'aa' and for directories all its contents.\n\ > %s -rf bb Delete 'bb' and its contents without prompting; use with care.\n\ > %s -- -myf Delete '-myf' - useful if the name might start with a -\n\ > "), > program_name, program_name, program_name, strlen(program_name), "", > program_name, program_name, program_name); Index: rmdir.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/rmdir.c,v retrieving revision 1.83 diff -r1.83 rmdir.c 153a154,160 > printf (_("\ > \n\ > Examples:\n\ > %s adir Delete the empty directory 'adir'.\n\ > %s -p a/b Delete empty directory 'b', if 'a' is then empty delete it.\n\ > "), > program_name, program_name); Index: seq.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/seq.c,v retrieving revision 1.88 diff -r1.88 seq.c 105a106,126 > printf (_("\ > \n\ > Examples:\n\ > %s 10 Output 1 through 10 (inclusive), one value per line.\n\ > %s 5 10 Output 5 through 10 (inclusive), one value per line.\n\ > %s -w 5 10 As above, but zero pad all lines to the same length.\n\ > %s 5 10 45 Output 5 through 45 (inclusive) in steps of 10.\n\ > %s -s , 5 10 45 As above but separate values with ','.\n\ > %s 1 .25 2 Output 1 through 2 (inclusive) in .steps of 0.25.\n\ > %s 1 .1 2.01 As above, in .1 steps - note extra on LAST to avoid\n\ > %*s rounding issues.\n\ > %s -f %%8.4f 1 .1 2.01 As above but use 4 decimal places in an 8 character\n\ > %*s wide field.\n\ > %s -f %%1.f 100 1000001 Output the inclusive range in steps of 1 forcing\n\ > %*s simple integer output (avoids scientific notation).\n\ > "), > program_name, program_name, program_name, > program_name, program_name, program_name, > program_name, strlen(program_name), "", > program_name, strlen(program_name), "", > program_name, strlen(program_name), ""); Index: shred.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/shred.c,v retrieving revision 1.121 diff -r1.121 shred.c 224a225,233 > printf (_("\ > \n\ > Examples:\n\ > %s afile Repeatedly overwrite the contents of 'afile'.\n\ > %s -u afile As above, but delete file after overwrites.\n\ > %s -z afile Repeatedly overwrite 'afile' and then overwrite with 0.\n\ > %s /dev/adevice Repeatedly overwrite device (e.g. disk or disk partition).\n\ > "), > program_name, program_name, program_name, program_name); Index: sleep.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/sleep.c,v retrieving revision 1.93 diff -r1.93 sleep.c 60a61,70 > printf (_("\ > \n\ > Examples:\n\ > %s 10 Sleep for 10 seconds.\n\ > %s 10s Sleep for 10 seconds.\n\ > %s 5 10 Sleep for 15 seconds.\n\ > %s 0.5m Sleep for half a minute.\n\ > %s 1s 1m Sleep for 1 minute, 1 second.\n\ > "), > program_name, program_name, program_name, program_name, program_name); Index: sort.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/sort.c,v retrieving revision 1.335 diff -r1.335 sort.c 355a356,375 > printf (_("\ > \n\ > Examples:\n\ > %s afile Sort 'afile' to standard output.\n\ > %s -n afile As above with numeric sorting (smallest first).\n\ > %s -n -r afile As above, but largest first.\n\ > %s -t : -k 5b,5 afile Sort : separated file on 5th field ignoring\n\ > %*s leading blanks.\n\ > %s -t : -k 5b,5 -k 3,3n As above, but then sort on numeric 3rd field,\n\ > %*s taking input from standard input.\n\ > %s -R afile Sort randomly.\n\ > %s afile bfile Sort the two files together.\n\ > %s -t/ -k3,3n -k2,2M -k1,1n Sort dates of the form 06/Jul/1972 on standard\n\ > %*s input; the M sorts by month.\n\ > "), > program_name, program_name, program_name, > program_name, strlen(program_name), "", > program_name, strlen(program_name), "", > program_name, program_name, > program_name, strlen(program_name), ""); Index: split.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/split.c,v retrieving revision 1.112 diff -r1.112 split.c 136a137,151 > printf (_("\ > \n\ > Examples:\n\ > %s -l 1000 afile Split 'afile' into files of 1000 lines or less\n\ > %*s named xaa, xab,....\n\ > %s -l 1000 afile part as above but output files named partaa,partab etc\n\ > %s -l 1000 -d afile p as above but name files p00, p01 etc\n\ > %s -l 1000 -d -a4 afile as above but name files x0000, x0001 etc\n\ > %s -b 1k afile Split 'afile' into files of 1024 bytes or less.\n\ > %s -C 1k afile As above but where possible end files on line\n\ > %*s boundaries.\n\ > "), > program_name, strlen(program_name), "", > program_name, program_name, program_name, program_name, > program_name, strlen(program_name), ""); Index: stat.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/stat.c,v retrieving revision 1.91 diff -r1.91 stat.c 849a850,863 > printf (_("\ > \n\ > Examples:\n\ > %s afile Report all information on 'afile'.\n\ > %s -L afile As above but dereference 'afile' if it is a link.\n\ > %s -f afile Report all information for the filesystem 'afile'\n\ > %*s is stored upon.\n\ > %s -t afile Report all information, but in a terse form.\n\ > %s -c %%s afile bfile Report the size (%%s) of 'afile' and 'bfile'.\n\ > %s --printf=\"%%s\\n\" afile As '-c %%s' with control over formatting.\n\ > "), > program_name, program_name, > program_name, strlen(program_name), "", > program_name, program_name, program_name); Index: stty.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/stty.c,v retrieving revision 1.138 diff -r1.138 stty.c 723a724,739 > printf (_("\ > \n\ > Examples:\n\ > %s sane Set a normally useable set of defaults on the tty.\n\ > %s intr ^c Set the interrupt special character to ctrl-c.\n\ > %s -a Output all settings in human readable form.\n\ > %s -g Output all settings in a form that can be passed\n\ > %*s as a parameter to stty to restore these settings.\n\ > %s 9600 Set current tty to 9600 baud.\n\ > %s -F /dev/ttyS0 9600 Set device ttyS0 to 9600 baud.\n\ > %s echo Enable echoing of input characters.\n\ > %s -echo Disable echoing of input characters.\n\ > "), > program_name, program_name, program_name, > program_name, strlen(program_name), "", > program_name, program_name, program_name, program_name); Index: su.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/su.c,v retrieving revision 1.89 diff -r1.89 su.c 424a425,434 > printf (_("\ > \n\ > Examples:\n\ > %s Start a shell as root.\n\ > %s auser Start a shell as the user 'auser'.\n\ > %s auser -c command Run 'command' as user 'auser'.\n\ > %s - auser Start a login shell as 'auser'.\n\ > %s -s /bin/sh auser Run the shell /bin/sh as 'auser'.\n\ > "), > program_name, program_name, program_name, program_name, program_name); Index: sum.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/sum.c,v retrieving revision 1.80 diff -r1.80 sum.c 74a75,84 > printf (_("\ > \n\ > Examples:\n\ > %s afile Report sum and block size (1024 byte) for 'afile'\n\ > %*s using BSD compatible algorithm.\n\ > %s -s afile As above but use 512 byte blocks and SysV algorithm.\n\ > %s afile bfile Print sum and block size for each file.\n\ > "), > program_name, strlen(program_name), "", > program_name, program_name); Index: tac.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/tac.c,v retrieving revision 1.126 diff -r1.126 tac.c 150a151,163 > printf (_("\ > \n\ > Examples:\n\ > %s afile Output 'afile' in reverse line order (each line\n\ > %*s is still in original order).\n\ > %s afile bfile As above but after 'afile' output 'bfile' in\n\ > %*s reverse line order.\n\ > %s -s : afile Split input on : rather than newline.\n\ > %s -r -s '[:,]' afile Split input on the regexp '[:,]' rather than newline.\n\ > "), > program_name, strlen(program_name), "", > program_name, strlen(program_name), "", > program_name, program_name); Index: tail.c =================================================================== RCS file: /cvsroot/coreutils/coreutils/src/tail.c,v retrieving revision 1.245 diff -r1.245 tail.c 292a293,314 > printf (_("\ > \n\ > Examples:\n\ > %s afile Output the last 10 lines of 'afile'.\n\ > %s -n 5 afile Output the last 5 lines of 'afile'.\n\ > %s -n 5 afile bfile Output the last 5 lines of each of 'afile' & 'bfile'.\n\ > %s -n 5 -q afile bfile As above, but do not output any header between files.\n\ > %s -c 5 afile Output the last 5 bytes of 'afile'.\n\ > %s -c 5k afile Output the last 5 kbytes of 'afile'.\n\ > %s -n +5 afile Output the 5th and subsequent lines of 'afile'.\n\ > %s -f afile Output the last 10 lines of 'afile' and poll for new\n\ > %*s lines added to the same file.\n\ > %s --follow=name afile As above but reopen the file periodically to poll\n\ > %*s the current file with that name rather than the\n\ > %*s original file.\n\ > %s -f --pid=123 afile as '-f' case but exit when process '123' exists.\n\ > "), > program_name, program_name, program_name, program_name, > program_name, program_name, program_name, > program_name, strlen(program_name), "", > program_name, strlen(program_name), "", strlen(program_name), "", > program_name); Index: ChangeLog =================================================================== RCS file: /cvsroot/coreutils/coreutils/ChangeLog,v retrieving revision 1.1602 diff -r1.1602 ChangeLog 0a1,22 > 2005-10-09 Dave Gilbert > > * src/chmod.c, src/chroot.c, src/cksum.c, src/comm.c, src/cp.c, > src/csplit.c, src/cut.c, src/date.c, src/dd.c, > src/df.c, src/dircolors.c, src/du.c, src/echo.c, > src/env.c, src/expand.c, src/expr.c, > src/factor.c, src/fmt.c, src/fold.c, > src/groups.sh, src/head.c, src/hostid.c, > src/hostname.c, src/id.c, src/install.c, > src/join.c, src/kill.c, src/link.c, > src/ln.c (Mostly from info examples), > src/ls.c, src/md5sum.c, src/mkdir.c, src/mkfifo.c, > src/mknod.c, src/mv.c, src/nice.c, src/nl.c, > src/nohup.c, src/od.c. src/paste.c, src/pathchk.c, > src/pinky.c, src/pr.c, src/printenv.c, > src/printf.c, src/readlink.c, src/rm.c, src/rmdir.c, > src/seq.c, src/shred.c, src/sleep.c, > src/sort.c, src/split.c, src/stat.c > src/stty.c, src/su.c, src/sum.c, > src/tac.c, src/tail.c: Add examples > >