aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-12-31 15:11:01 +0000
committerRichard M. Stallman2004-12-31 15:11:01 +0000
commit2d36e6a93763be8e77c763dd2011f3d037880aec (patch)
tree1fe6d7c1d8e0b4165ea636f6dd92b7bffe3675af
parenta0c283e67b5a66281fd1f664a584b0771f121c72 (diff)
downloademacs-2d36e6a93763be8e77c763dd2011f3d037880aec.tar.gz
emacs-2d36e6a93763be8e77c763dd2011f3d037880aec.zip
(Shell Commands in Dired): Delete the ? example.
-rw-r--r--man/dired.texi16
1 files changed, 4 insertions, 12 deletions
diff --git a/man/dired.texi b/man/dired.texi
index 1c5e29fe696..464aa34c6c2 100644
--- a/man/dired.texi
+++ b/man/dired.texi
@@ -700,26 +700,18 @@ file.
700If the command string contains @samp{?} surrounded by whitespace, the 700If the command string contains @samp{?} surrounded by whitespace, the
701current file name is substituted for @samp{?}. You can use @samp{?} 701current file name is substituted for @samp{?}. You can use @samp{?}
702this way more than once in the command, and each occurrence is 702this way more than once in the command, and each occurrence is
703replaced. For instance, here is how to uuencode each file, making the 703replaced.
704output file name by appending @samp{.uu} to the input file name:
705
706@example
707uuencode ? ? > ?.uu
708@end example
709@end itemize 704@end itemize
710 705
711To iterate over the file names in a more complicated fashion, use an 706To iterate over the file names in a more complicated fashion, use an
712explicit shell loop. For example, this shell command is another way 707explicit shell loop. For example, here is how to uuencode each file,
713to uuencode each file: 708making the output file name by appending @samp{.uu} to the input file
709name:
714 710
715@example 711@example
716for file in * ; do uuencode "$file" "$file" >"$file".uu; done 712for file in * ; do uuencode "$file" "$file" >"$file".uu; done
717@end example 713@end example
718 714
719@noindent
720This simple example doesn't require a shell loop (you can do it
721with @samp{?}, but it illustrates the technique.
722
723The working directory for the shell command is the top-level directory 715The working directory for the shell command is the top-level directory
724of the Dired buffer. 716of the Dired buffer.
725 717