I have a list of ".c" (c files) in the current directory.
I have to find all the .c files in the current directory.
The command that can be used id ls *.c
But, another way is to use grep.
so if i give
ls | grep *.c
It doesn't return any result for this command, whereas for other file types like ".java", ".txt" it gives expected results.
Is there any special meaning for "*.c" in grep command? Or may I know the reason for this behaviour?