看板FreeBSD
标 题关於less
发信站中大资管龙猫资讯天地 (Sun Apr 11 05:48:33 2004)
转信站ptt!ctu-reader!ctu-peer!news.nctu!freebsd.ntu!news.ntu!news.mcu!news.c
我看less的manpage,
看到:
/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 ed. The search starts at the second line dis-
played (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:
^K Highlight any text which matches the pattern on the cur-
rent screen, but don't move to the first match (KEEP cur-
rent position).
为什麽我每次 less test.txt时,
/^Ktest
要找test字串,并要将match到的给highlight,
less总是说pattern not found呢!!
--
◎
龙猫资讯天地(
bbs.mgt.ncu.edu.tw)
◎[
ethylene]From: 228161.D18-228.ncu.edu.tw