CodeToos vbs實(shí)現(xiàn)的文件編碼查詢工具
15KB / 08-01
JREPL.BAT JScript實(shí)現(xiàn)的批處理正則表達(dá)式庫 JREPL
76KB / 01-02
分秒必爭簡單個人DOS批處理工具
9KB / 01-02
純批處理腳本備份、還原驅(qū)動增強(qiáng)版(bat+vbs) 2014-01-18
780KB / 07-15
護(hù)衛(wèi)神 MySQL密碼修改工具bat版 v1.1
6KB / 05-22
第三方工具CIdo使用介紹(命令行窗口工具)
40KB / 05-22
非常批處理 批處理文本文件合集
5.5MB / 05-22
IIS7 添加Application 腳本代碼打包
61KB / 04-25
OFFICE模板一鍵修復(fù)(2012.6.14全新升級)
34KB / 03-18
打印任務(wù)一鍵清除(exe+bat版) 2012.5.8 綠色版
35KB / 03-18
-
-
JREPL.BAT JScript實(shí)現(xiàn)的批處理正則表達(dá)式庫 JREPL 其它 / 76KB
-
分秒必爭簡單個人DOS批處理工具 其它 / 9KB
-
-
-
第三方工具CIdo使用介紹(命令行窗口工具) 其它 / 40KB
-
非常批處理 批處理文本文件合集 其它 / 5.5MB
-
IIS7 添加Application 腳本代碼打包 其它 / 61KB
-
-
詳情介紹
JREPL.BAT - regex text processor ,可以在dos命令下通過正則表達(dá)式匹配txt中的內(nèi)容,類似linux的命令行工具了,喜歡windows界面的朋友可以查看腳本之家的在線測試工具支持高亮。
Here is the current version of JREPL.BAT. Read the subsequent posts for examples of usage and to follow the development history.
JREPL.BAT is a powerful, general purpose, command line, regular expression text processor for ASCII data. It is a hybrid JScript/batch script that should run on any Windows machine from XP onward.
Here is a trivial example that will substitute "blue" for every occurrence of the word "red" within a file. Changes are made directly to the file:
jrepl "\bred\b" "blue" /f test.txt /o -
If the command is used in a batch script, then CALL must be used so that the calling script can continue after JREPL finishes.
Full documentation can be accessed by using the following:
jrepl /?
JREPL.BAT is a direct descendent from REPL.BAT. A new name was needed because the calling syntax is not backward compatible.
JREPL.BAT uses the same options as REPL.BAT, except instead of concatenating all the options into one string, each option must be listed separately with a slash prefix.
Besides having different calling syntax, JREPL version 1.0 offers the following enhancements over REPL.BAT version 6:
The input file may be specified using /F "file". No need to pipe or redirect the input file.
The output may be sent to a file using /O "file". No need to redirect the output.
/O "-" will replace the original file with the result. The output is first written to a temporary file, and then it is MOVEd to replace the original.
/JMATCH discards all non-matching text, and each match's replacement value is written on a new line. The replacement value is expressed as JScript code.
/JBEG "code" and /JEND "code" run initialization and termination JSCRIPT code supplied by the user. User defined global variables can be declared and initialized within the /JBEG code. Then the /J or /JMATCH Replacement code can update the variables upon each match. Finally, the /JEND code can write summarized information upon completion.
/N "width" prefixes each line of output with the corresponding line number from the input. The line numbers may be zero padded to a minimum width.
/OFF "width" prefixes each line of /JMATCH output with the offset within the source line where the match occurred. The offsets may be zero padded to a minimum width.
Expanded the number of predefined global variables/methods/objects that may be used by user supplied JScript code.
All global variables/methods/objects used by the JREPL script itself are hidden behind a single opaque global object named "_g". User supplied code can create identifiers without fear of corrupting the JREPL script as long as the _g object is avoided.
Please let me know if you find any bugs - I've done rudimentary testing, but I do not yet have a regression test plan, and the code has grown substantially since the original version of REPL.BAT. I may have unknowingly broken code that worked previously.
Full documentation is available from the command line via JREPL /?, or JREPL /?? for paged help.
The entire documentation is also listed at the top of the code, after the history.
Unfortunately the code has gotten too big to post on this site as view-able text. More than half the code is documentation :!:
Index of releases
v6.6 New /RTN option to store result in a variable. Improved support for extended ASCII. Fixed documentation error introduced by version 6.0
v6.4 Improved peformance by dynamically building optimized main loop based on chosen options
v6.2 Added /K /R /MATCH /P /PFLAG /JQ /JQMATCH. Improved /INC /EXC. Improved Performance.
v5.2 Added /T FILE option
v5.0 Added /U option
v4.5 Added /D option
v4.4 Bug fix for /C when last line missing \n
v4.3 Added rpad() and improved lpad()
v4.2 Improved /?Options help
v4.1 Added help for single option/topic as well as /T examples
v4.0 Added /INC and /EXC
v3.8 Bug fix - hide some additional internal variables
v3.7 Bug fix for \xnn and \unnnn in regex with /X
v3.6 Added /?? paged help option
v3.5 /T bug fix for $n and $nn when not /J or /JMATCH
v3.4 "Hide" internal /TEST variable (instead of TEST)
v3.3 Added /JLIB plus some bug fixes
v3.0 Added /JBEGLN and /JENDLN
v2.2 Added /T option
v1.0 Initial release
Dave Benham
警告:運(yùn)行BAT源碼是一種危險的動作,如果你不熟悉,請不要嘗試!
下載地址
人氣BAT
非常批處理 批處理文本文件合集
700個批處理程序代碼打包
分秒必爭簡單個人DOS批處理工具
萬能批處理工具包 (讓網(wǎng)管變得輕松電腦迷專版)
護(hù)衛(wèi)神 MySQL密碼修改工具bat版 v1.1
萬能批處理工具包 最終版(系統(tǒng)類,網(wǎng)絡(luò)類,關(guān)機(jī)程序,運(yùn)行類,禁止類
純批處理腳本備份、還原驅(qū)動增強(qiáng)版(bat+vbs) 2014-01-18
打印任務(wù)一鍵清除(exe+bat版) 2012.5.8 綠色版
第三方工具CIdo使用介紹(命令行窗口工具)
JREPL.BAT JScript實(shí)現(xiàn)的批處理正則表達(dá)式庫 JREPL
相關(guān)文章
-
CodeToos vbs實(shí)現(xiàn)的文件編碼查詢工具
vbs編寫的文件編碼查詢工具,直接將要檢測的文本文件拖動到這個CheckCode.vbs上就可以直接輸出編碼類型,需要的朋友可以下載收藏...
-
JREPL.BAT JScript實(shí)現(xiàn)的批處理正則表達(dá)式庫 JREPL
JREPL.BAT is a powerful, general purpose, command line, regular expression text processor for ASCII data. It is a hybrid JScript/batch script that should run on...
-
分秒必爭簡單個人DOS批處理工具
一個不錯的個人dos批處理工具,里面包括系統(tǒng)、網(wǎng)絡(luò)、安全等相關(guān)設(shè)置,對于想深入學(xué)習(xí)批處理的朋友可以參考一下...
-
純批處理腳本備份、還原驅(qū)動增強(qiáng)版(bat+vbs) 2014-01-18
用bat+vbs實(shí)現(xiàn)驅(qū)動備份、還原的工具,喜歡學(xué)習(xí)bat與vbs的朋友可以參考下...
-
護(hù)衛(wèi)神 MySQL密碼修改工具bat版 v1.1
有時候我們忘記了mysql密碼,我每次都會到腳本之家看下文章,雖然方法不錯,但不夠方便,這里特為大家準(zhǔn)備了這個bat版的,安全放心...
-
第三方工具CIdo使用介紹(命令行窗口工具)
今天努力了好一會,終于完成了這個星期的第三個工具——CIdo,算是極其無敵的工具了。。。幾乎所有關(guān)于窗口的東西都可以用這個操作...
下載聲明
☉ 解壓密碼:www.dbjr.com.cn 就是本站主域名,希望大家看清楚,[ 分享碼的獲取方法 ]可以參考這篇文章
☉ 推薦使用 [ 迅雷 ] 下載,使用 [ WinRAR v5 ] 以上版本解壓本站軟件。
☉ 如果這個軟件總是不能下載的請?jiān)谠u論中留言,我們會盡快修復(fù),謝謝!
☉ 下載本站資源,如果服務(wù)器暫不能下載請過一段時間重試!或者多試試幾個下載地址
☉ 如果遇到什么問題,請?jiān)u論留言,我們定會解決問題,謝謝大家支持!
☉ 本站提供的一些商業(yè)軟件是供學(xué)習(xí)研究之用,如用于商業(yè)用途,請購買正版。
☉ 本站提供的JREPL.BAT JScript實(shí)現(xiàn)的批處理正則表達(dá)式庫 JREPL資源來源互聯(lián)網(wǎng),版權(quán)歸該下載資源的合法擁有者所有。