답변:
기본 man
호출기는 less
입니다. less
의 도움말 을 보면 (도움말을 누르면 h
) 다음을 볼 수 있습니다.
SEARCHING
/pattern * Search forward for (N-th) matching line.
?pattern * Search backward for (N-th) matching line.
n * Repeat previous search (for N-th occurrence).
N * Repeat previous search in reverse direction.
ESC-n * Repeat previous search, spanning files.
ESC-N * Repeat previous search, reverse dir. & spanning files.
ESC-u Undo (toggle) search highlighting.
&pattern * Display only matching lines
---------------------------------------------------
A search pattern may be preceded by one or more of:
^N or ! Search for NON-matching lines.
또는 man less
:
/pattern
Search forward in the file for the N-th line containing the pat‐
tern. N defaults to 1. The pattern is a regular expression, as
recognized by the regular expression library supplied by your
system. The search starts at the first line displayed (but see
the -a and -j options, which change this).
Certain characters are special if entered at the beginning of
the pattern; they modify the type of search rather than become
part of the pattern:
^N or !
Search for lines which do NOT match the pattern.
따라서, 단지 패턴은 무시!
되는 빈 패턴입니다 ( 아무것도 일치하지 않음 ) .
!
백 슬래시 ( \!
)를 사용하거나 정규 표현식의 첫 문자 ( /[!]
예 :)가 아닌 패턴을 시작할 때 패턴 의 중요성을 피해야합니다 .
다른 방법은 다음을 사용하는 것입니다 grep
.
$ man find | grep !
with `-', or the argument `(' or `!'. That argument and any following
! expr True if expr is false. This character will also usually need
Same as ! expr, but not POSIX compliant.
The POSIX standard specifies parentheses `(', `)', negation `!' and the
find /sbin /usr/sbin -executable \! -readable -print
find . -perm -444 -perm /222 ! -perm /111
find . -perm -a+r -perm /a+w ! -perm /a+x
-perm /222 or -perm /a+w) but are not executable for anybody ( ! -perm
/111 and ! -perm /a+x respectively).
find . -name .snapshot -prune -o \( \! -name *~ -print0 \)|
--html
나-H
.