What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-01-31 01:12:47
count number of lines files .cpp .h
# Show count sum find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec cat {} + | wc -l # Show count sum and stats for each file find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec wc -l {} + Add solution -
-
Python 2022-01-24 06:05:06
django drop database postgres
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete find . -path "*/migrations/*.pyc" -delete # Check status of files > python3 manage.py showmigrations create news migrations Enjoy:) Add solution -
Shell/Bash 2022-01-22 06:50:41
drupal file permissions
cd /var/www/html/drupal9 sudo chown -R my-user:apache . sudo find . -type d -exec chmod 750 '{}' \; sudo find . -type f -exec chmod 640 '{}' \; cd web/sites sudo find . -type d -name files -exec chmod 770 '{}' \; for d in ./*/files do sudo find $d -typ... Add solution -
Other 2021-11-21 09:27:31
terminal open current directory in finder
find . -type d | grep DIRNAME Add solution
Best helpers
Ranking is empty