简体   繁体   English

在 linux 中遍历

[英]Traversing in linux

I am new to linux shell scripting!我是 linux shell 脚本的新手! Can anyone tell me how to:谁能告诉我如何:

  1. traverse a folder with multiple xml files.遍历包含多个xml文件的文件夹。
  2. after traversing, check for given string.遍历后,检查给定的字符串。
  3. if the given string is present, display the files with given string如果给定的字符串存在,则显示给定的字符串的文件

尝试这个:

grep -o "display_name = Question" /path/to/abc/*.xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM