I was wondering if there is a way to find files that end with .c using /\.c/. How would I do that?
I have tried ls -l /\.c/ but it doesn't work.
Try this instead: find . -name '*.c'
or with more details on the found files: find . -name '*.c' -ls
ls *.c
using /.c/mean to you?globpatterns, like*.c, to find such files. Sols -l *.cshould do what you want./\.c/looks like a search expression used by an editor likevi.