六月丁香五月婷婷,丁香五月婷婷网,欧美激情网站,日本护士xxxx,禁止18岁天天操夜夜操,18岁禁止1000免费,国产福利无码一区色费

學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 操作系統(tǒng) > Linux教程 > windows下的linux grep findstr命令

windows下的linux grep findstr命令

時(shí)間: 志藝942 分享

windows下的linux grep findstr命令

  findstr是Window系統(tǒng)自帶的命令,用途是查找指定的一個(gè)或多個(gè)文件文件中包含(或通過(guò)參數(shù) /V來(lái)控制不包含)某些特定字符串的行,并將該行完整的信息打印出來(lái),或者打印查詢(xún)字符串所在的文件名。接下來(lái)是小編為大家收集的windows下的linux grep findstr命令,希望能幫到大家。

  windows下的linux grep findstr命令

  經(jīng)常用linux下的grep命令,比如:

  netstat -an|grep 1521

  其實(shí)windows下也有一個(gè)類(lèi)似的命令findstr,比如:

  C:\Windows\system32>netstat -an|findstr 1521

  TCP 0.0.0.0:1521 0.0.0.0:0 LISTENING

  TCP 192.168.1.100:1521 192.168.1.100:49686 ESTABLISHED

  TCP 192.168.1.100:1521 192.168.1.100:49701 ESTABLISHED

  TCP 192.168.1.100:1521 192.168.1.100:49702 ESTABLISHED

  TCP 192.168.1.100:1521 192.168.1.100:49706 ESTABLISHED

  TCP 192.168.1.100:1521 192.168.1.100:49707 ESTABLISHED

  TCP 192.168.1.100:1521 192.168.1.100:49753 ESTABLISHED

  TCP 192.168.1.100:49686 192.168.1.100:1521 ESTABLISHED

  TCP 192.168.1.100:49701 192.168.1.100:1521 ESTABLISHED

  TCP 192.168.1.100:49702 192.168.1.100:1521 ESTABLISHED

  TCP 192.168.1.100:49706 192.168.1.100:1521 ESTABLISHED

  TCP 192.168.1.100:49707 192.168.1.100:1521 ESTABLISHED

  TCP 192.168.1.100:49753 192.168.1.100:1521 ESTABLISHED

  TCP [::]:1521 [::]:0 LISTENING

  當(dāng)然windows下還有一個(gè)find命令,比如:

  C:\Windows\system32>netstat -an|find "1521"

  TCP 0.0.0.0:1521 0.0.0.0:0 LISTENING

  TCP 192.168.1.100:1521 192.168.1.100:49686 ESTABLISHED

  TCP 192.168.1.100:1521 192.168.1.100:49701 ESTABLISHED

  TCP 192.168.1.100:1521 192.168.1.100:49702 ESTABLISHED

  TCP 192.168.1.100:1521 192.168.1.100:49706 ESTABLISHED

  TCP 192.168.1.100:1521 192.168.1.100:49707 ESTABLISHED

  TCP 192.168.1.100:1521 192.168.1.100:49753 ESTABLISHED

  TCP 192.168.1.100:49686 192.168.1.100:1521 ESTABLISHED

  TCP 192.168.1.100:49701 192.168.1.100:1521 ESTABLISHED

  TCP 192.168.1.100:49702 192.168.1.100:1521 ESTABLISHED

  TCP 192.168.1.100:49706 192.168.1.100:1521 ESTABLISHED

  TCP 192.168.1.100:49707 192.168.1.100:1521 ESTABLISHED

  TCP 192.168.1.100:49753 192.168.1.100:1521 ESTABLISHED

  TCP [::]:1521 [::]:0 LISTENING

  兩個(gè)命令的區(qū)別是find需要用引號(hào)引起來(lái)。

  
看了“windows下的linux grep findstr命令”還想看:

1.Linux下如何使用grep命令搜索多個(gè)單詞

2.講解Linux下grep命令的使用技巧

3.14個(gè)grep命令使用例子介紹

4.15個(gè)Linux Grep命令使用實(shí)例

2891995