掌上百科 - PDAWIKI

 找回密码
 免费注册

QQ登录

只需一步,快速开始

查看: 486|回复: 0

[教程] powergrep 007

[复制链接]

该用户从未签到

发表于 2017-11-20 20:44:49 | 显示全部楼层 |阅读模式
actionmain.html
5 ^" U4 m2 X, Z; F4 v: `3 l: M" `6 {0 Y. j5 Z' A0 a0 N
Main Part of The Action
) f" C( U. q6 W5 f: t
' L  s) X$ L1 i% VThe Action panel is the place where you define the task that PowerGREP will execute. All the options on the Action panel are arranged into nine parts, though not all those parts are always visible. This screen shot shows all nine:8 j; ?, O4 c+ [$ A
9 p1 q. c. i2 w6 D4 U5 b
Action panel showing all nine parts& R% b4 P1 Q* v
% X6 n9 J) Z9 X. @7 h# q2 O
The main part of the action is always visible, and always shows a Search box to enter search terms. In the screen shot, the main part of the action is the only part that shows the Search box. All of the other parts are turned off.- j: H* l6 i# Y. d& `6 ?; J

- v1 k% O! I9 Z/ S; f  f. {What PowerGREP does with the main search term of your action depends on the "action type" that you've selected at the top of the Action panel. All action types except "list files", "file or folder name collect" and "merge files" need at l** one search term in the main part of the action.
- C+ E. d8 }7 n0 Q+ U
& c+ B2 R1 w& g( zThe action type also determines whether the main part of the action shows a second box to enter a replacement text or a text to be collected. The "search and replace" and "rename files or folders" action types need a replacement text to replace search matches with. The "collect data" and "file or folder name collect" action types need a text to be collected.
/ Z. C2 g5 x& Z& f5 ]: u3 d/ ?: F% j. N3 K: `1 t# O3 d# ?# t
Exactly what PowerGREP does with the search term(s) in the main part of the action is described in detail in the topic about action types. Normally, the main search terms are used to search through the contents of the files. The "file or folder name search", file or folder name collect", and "rename files or folders" action types use them to search through the names of files instead.
7 A& g4 i5 \% Z; P$ h" ]0 `
2 F7 [, ~- j& G0 ?The search term(s) can be literal text, binary data, or a regular expression. You choose this through the "search type" setting. If the search term is a regular expression, the replacement text or text to be collected uses the replacement string syntax with backreferences from the regular expression. Otherwise, the replacement text or text to be collected is also literal text or binary data.
7 U. ^+ A1 _* h
- V) [2 _: x3 H8 z( LDiscuss
+ [  {) {4 T2 i# H3 A8 u& j# C' n+ m. J4 W
Start or join the conversation on the topic "Docs: Main Part of The Action" in PowerGREP's discussion forum.
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

小黑屋|手机版|Archiver|PDAWIKI |网站地图

GMT+8, 2024-3-29 14:06 , Processed in 0.031158 second(s), 10 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表