update manpages

This commit is contained in:
Connor Lane Smith 2011-05-25 18:29:46 +01:00
parent 416a068df6
commit 47308190b3
12 changed files with 29 additions and 3 deletions

View File

@ -12,3 +12,5 @@ prints the
with any leading path components, and the with any leading path components, and the
.IR suffix , .IR suffix ,
removed. removed.
.SH SEE ALSO
.IR basename (3)

View File

@ -13,3 +13,5 @@ changes the user or group ownership for the given files.
.TP .TP
.B -R, -r .B -R, -r
change directory ownership recursively. change directory ownership recursively.
.SH SEE ALSO
.IR chown (2)

4
date.1
View File

@ -11,10 +11,12 @@ date \- print date and time
prints the date and time. If a prints the date and time. If a
.I format .I format
is given it is used to format the date as per is given it is used to format the date as per
.BR strftime (3). .IR strftime (3).
.SH OPTIONS .SH OPTIONS
.TP .TP
.BI \-d " time" .BI \-d " time"
prints prints
.I time .I time
instead of the system time, given as the number of seconds since the Unix epoch. instead of the system time, given as the number of seconds since the Unix epoch.
.SH SEE ALSO
.IR strftime (3)

View File

@ -9,3 +9,5 @@ dirname \- strip final path component
prints the prints the
.I string .I string
with its final path component removed. with its final path component removed.
.SH SEE ALSO
.IR dirname (3)

4
grep.1
View File

@ -9,7 +9,7 @@ grep \- search files for a pattern
.SH DESCRIPTION .SH DESCRIPTION
.B grep .B grep
searches the input files for lines that match the pattern, a regular expression as defined in searches the input files for lines that match the pattern, a regular expression as defined in
.BR regex (7). .IR regex (7).
By default each matching line is printed to stdout. If no file is given, grep By default each matching line is printed to stdout. If no file is given, grep
reads from stdin. reads from stdin.
.P .P
@ -36,3 +36,5 @@ prints nothing, only returns status.
selects lines which do selects lines which do
.B not .B not
match the pattern. match the pattern.
.SH SEE ALSO
.IR regex (7)

2
head.c
View File

@ -38,7 +38,7 @@ void
head(FILE *fp, const char *str, long n) head(FILE *fp, const char *str, long n)
{ {
char buf[BUFSIZ]; char buf[BUFSIZ];
int i; long i;
for(i = 0; i < n && fgets(buf, sizeof buf, fp); i++) for(i = 0; i < n && fgets(buf, sizeof buf, fp); i++)
fputs(buf, stdout); fputs(buf, stdout);

5
ln.1
View File

@ -20,3 +20,8 @@ be linked into the given directory.
.TP .TP
.B \-s .B \-s
create a symbolic link. create a symbolic link.
.SH SEE ALSO
.IR cp (1),
.IR mv (1),
.IR link (2),
.IR symlink (2)

View File

@ -7,3 +7,5 @@ mkfifo \- make named pipe
.SH DESCRIPTION .SH DESCRIPTION
.B mkfifo .B mkfifo
creates named pipes (FIFOs) with the given names. creates named pipes (FIFOs) with the given names.
.SH SEE ALSO
.IR mkfifo (3)

2
pwd.1
View File

@ -6,3 +6,5 @@ pwd \- print working directory
.SH DESCRIPTION .SH DESCRIPTION
.B pwd .B pwd
prints the path of the current working directory. prints the path of the current working directory.
.SH SEE ALSO
.IR getcwd (3)

2
rm.1
View File

@ -15,3 +15,5 @@ ignore files that cannot be removed.
.TP .TP
.B \-r .B \-r
remove directories recursively. remove directories recursively.
.SH SEE ALSO
.IR remove (3)

View File

@ -7,3 +7,5 @@ sleep \- wait for a number of seconds
.SH DESCRIPTION .SH DESCRIPTION
.B sleep .B sleep
waits until the given number of seconds have elapsed. waits until the given number of seconds have elapsed.
.SH SEE ALSO
.IR sleep (3)

View File

@ -20,3 +20,6 @@ do not create files if they do not exist.
sets the files' modification time to sets the files' modification time to
.IR time , .IR time ,
given as the number of seconds since the Unix epoch. given as the number of seconds since the Unix epoch.
.SH SEE ALSO
.IR utime (2),
.IR creat (2)