iT邦幫忙

1

bat找文字檔裡的某一段字串

bat
c:
findstr /s /n /i /p /c:"找的就是你" *
pause

d:
cd d:\test\
findstr /s /n /i /p /c:"找的就是你" *
pause

/s 在目前與子目錄下搜尋
/n 把符合條件的行數列出
/i 忽略大小寫
/p 忽略不可視字元(但不知道什麼是不可視字元)
/c:依指定字串搜尋

ref
https://blog.yowko.com/findstr-grep-on-windows/


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言