3 ms·
> ls | grep -c .py That won't work if there are files with names like foo.py.txt. These will: ls | grep -c '.py$' or better, because less names to filter ou
by vram22 12y ago
> ls | grep -c .py
That won't work if there are files with names like foo.py.txt.
These will:
ls | grep -c '.py$'
or better, because less names to filter out:
ls -l *.py | wc -l