(emacs)Marks vs Flags
Next: Operating on Files Prev: Dired Visiting Up: Dired
Dired Marks vs. Flags
Instead of flagging a file with `D', you can "mark" the file with
some other character (usually `*'). Most Dired commands other than
"expunge" (`x') operate on files marked with `*'.
Here are some commands for marking with `*' (and also for
unmarking). (Note: Dired Deletion, for commands to flag and unflag
Mark the current file with `*' (`dired-mark'). With a numeric
argument N, mark the next N files starting with the current file.
(If N is negative, mark the previous -N files.)
Mark all executable files with `*' (`dired-mark-executables').
With a prefix argument, unmark all those files.
Mark all symbolic links with `*' (`dired-mark-symlinks'). With a
prefix argument, unmark all those files.
Mark with `*' all files which are actually directories, except for
`.' and `..' (`dired-mark-directories'). With a prefix argument,
unmark all those files.
Remove all marks that use the character MARKCHAR
(`dired-unmark-all-files'). If you specify RET as MARKCHAR, this
command removes all marks, no matter what the marker character is.
With a numeric argument, this command queries about each marked
file, asking whether to remove its mark. You can answer `y'
meaning yes, `n' meaning no, `!' to remove the marks from the
remaining files without asking about them.
`c OLD NEW'
Replace all marks that use the character OLD with marks that use
the character NEW (`dired-change-marks'). This command is the
only way to create or use marks other than `*' or `D'. The
arguments are single characters--do not use RET to terminate them.
You can use almost any character as a mark character by means of
this command, to distinguish various classes of files. If OLD is a
space (` '), then the command operates on all unmarked files; if
NEW is a space, then the command unmarks the files it acts on.
To illustrate the power of this command, here is how to put `*'
marks on all the files that are unmarked, while unmarking all
those that have `*' marks:
c * t c SPC * c t SPC
`% m REGEXP RET'
Mark (with `*') all files whose names match the regular expression
Only the non-directory part of the file name is used in matching.
Use `^' and `$' to anchor matches. Exclude subdirectories by
hiding them (Note: Hiding Subdirectories.).
automatically generated by info2www