teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

参考記事追加

2019/09/26 12:24

投稿

nomuken
nomuken

スコア1627

answer CHANGED
@@ -5,4 +5,6 @@
5
5
  for file in $( find "$1" -maxdepth 1 -name '*.js' ) ;do
6
6
  [ $( grep -o 'abc' ${file} | wc -l ) -ge 20 ] && echo ${file}
7
7
  done
8
- ```
8
+ ```
9
+
10
+ 参考記事:[Linuxコンソール上でファイル内の特定のキーワードの数を数える](https://orebibou.com/2016/06/linux%E3%82%B3%E3%83%B3%E3%82%BD%E3%83%BC%E3%83%AB%E4%B8%8A%E3%81%A7%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E5%86%85%E3%81%AE%E7%89%B9%E5%AE%9A%E3%81%AE%E3%82%AD%E3%83%BC%E3%83%AF%E3%83%BC%E3%83%89/)