如何递归grep目录内的模式? [英] How to recursively grep the pattern inside the directory?

查看:46
本文介绍了如何递归grep目录内的模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想grep所有以以下字符开头的字符串模式:学生_ , 然后任意数量的符号(字母和数字)并以 .tcl

I would like to grep all string patterns which are start with the: student_ , then any numbers of symbols(letters and digits) and end with the .tcl

推荐答案

grep "student_[[:alnum:]]*\.tcl" *

这篇关于如何递归grep目录内的模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆