grep -R <pattern> -L *
-R recursively search
-L files without match
Пример:
touch $(seq 1 100) # create 100 files
echo "testing" > 28
echo "testing" > 32
echo "testing" > 10
echo "testing" > 15
echo "testing" > 95
echo "testing" > 72
echo "testing" > 34
echo "testing" > 25 # eight files with pattern
$ grep -l test *|wc -l # files that contains pattern
8
$ grep -L test *|wc -l # files that doesn't contain pattern
92
вы можете после добавления и фиксации файлов в локальной ветке:
$git remote add origin remote
$ git remote -v
теперь вы можете загружать в него данные с помощью команды git push