在当前目录查找指定字符串 search_text sh

#!/bin/sh #usage sh a.sh search_text #在当前目录查找指定字符串 search_text if [ ! $1 ]; then         echo "You have not specify a parameter!"         exit fi find . -type f -print | xargs -i grep  -H $1 '{}'
相关文章
相关标签/搜索