在當前目錄查找指定字符串 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 '{}'
相關文章
相關標籤/搜索