diff options
| author | Richard M. Stallman | 2004-12-31 15:11:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-12-31 15:11:01 +0000 |
| commit | 2d36e6a93763be8e77c763dd2011f3d037880aec (patch) | |
| tree | 1fe6d7c1d8e0b4165ea636f6dd92b7bffe3675af | |
| parent | a0c283e67b5a66281fd1f664a584b0771f121c72 (diff) | |
| download | emacs-2d36e6a93763be8e77c763dd2011f3d037880aec.tar.gz emacs-2d36e6a93763be8e77c763dd2011f3d037880aec.zip | |
(Shell Commands in Dired): Delete the ? example.
| -rw-r--r-- | man/dired.texi | 16 |
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. | |||
| 700 | If the command string contains @samp{?} surrounded by whitespace, the | 700 | If the command string contains @samp{?} surrounded by whitespace, the |
| 701 | current file name is substituted for @samp{?}. You can use @samp{?} | 701 | current file name is substituted for @samp{?}. You can use @samp{?} |
| 702 | this way more than once in the command, and each occurrence is | 702 | this way more than once in the command, and each occurrence is |
| 703 | replaced. For instance, here is how to uuencode each file, making the | 703 | replaced. |
| 704 | output file name by appending @samp{.uu} to the input file name: | ||
| 705 | |||
| 706 | @example | ||
| 707 | uuencode ? ? > ?.uu | ||
| 708 | @end example | ||
| 709 | @end itemize | 704 | @end itemize |
| 710 | 705 | ||
| 711 | To iterate over the file names in a more complicated fashion, use an | 706 | To iterate over the file names in a more complicated fashion, use an |
| 712 | explicit shell loop. For example, this shell command is another way | 707 | explicit shell loop. For example, here is how to uuencode each file, |
| 713 | to uuencode each file: | 708 | making the output file name by appending @samp{.uu} to the input file |
| 709 | name: | ||
| 714 | 710 | ||
| 715 | @example | 711 | @example |
| 716 | for file in * ; do uuencode "$file" "$file" >"$file".uu; done | 712 | for file in * ; do uuencode "$file" "$file" >"$file".uu; done |
| 717 | @end example | 713 | @end example |
| 718 | 714 | ||
| 719 | @noindent | ||
| 720 | This simple example doesn't require a shell loop (you can do it | ||
| 721 | with @samp{?}, but it illustrates the technique. | ||
| 722 | |||
| 723 | The working directory for the shell command is the top-level directory | 715 | The working directory for the shell command is the top-level directory |
| 724 | of the Dired buffer. | 716 | of the Dired buffer. |
| 725 | 717 | ||