当我在谷歌中放入'染色体'时,它显示了“染色体”等含义,语音符号,用法。我认为这是有用的,我使用这个功能经常查找单词。但是,你在引擎中输入的所有单词都没有给你字典结果,我想知道是否有办法强迫谷歌去做。
答案 0 :(得分:0)
为搜索查询添加前缀 # START -- how-to search and replace recursively in file paths and contents
export dir=/var/some/dir;
export to_srch="foo"
export to_repl="bar"
# those are bonus oneliners - skip them if you do not want to change
# file paths
#-- search and replace in file names, skip those in .git (
find "$dir/" -not -path "./.git/*" -type d |\
perl -nle '$o=$_;s#'"$to_srch"'#'"$to_repl"'#g;$n=$_;`mkdir -p $n` ;'
find "$dir/" -not -path "./.git/*" -type f -name '*.txt' |\
perl -nle '$o=$_;s#'"$to_srch"'#'"$to_repl"'#g;$n=$_;rename($o,$n) unless -e $n ;'
#-- search and replace in file contents, skip those in .git
find "$dir/" -not -path "./.git/*" -type f -name '*.txt' -exec \
perl -pi -e "s#$to_srch#$to_repl#g" {} \;
find "$dir/" -not -path "./.git/*" -type f -name '*.bak' | xargs rm -f"
# STOP -- how-to rename files recursively in file paths and contents
以获取定义。
例如,
define