In
this answer, I could change
ls -la | grep ".mp4" | wc -l
to
ls -1q | grep -c '\.mp4$'
(see comments), but that doesn't seem right. It would also raise questions like, should I actually make the additional change of writing
\ls
since it's common to make
ls
an alias that uses additional options?