Skip to content

Instantly share code, notes, and snippets.

@mudassaralichouhan
Last active December 31, 2024 00:13
Show Gist options
  • Save mudassaralichouhan/cdbc7941abeb18040d735dfaa4b8bd32 to your computer and use it in GitHub Desktop.
Save mudassaralichouhan/cdbc7941abeb18040d735dfaa4b8bd32 to your computer and use it in GitHub Desktop.
Tips

wc Command (Unix/Linux/Mac) You can use the wc (word count) command in the terminal to count lines in files. To count lines in all .cc and .h files in your project, you can navigate to your project directory and run:

$ find . -name '*.cc' -o -name '*.h' | xargs wc -l

Command to Count .c Files

$ find . -name '*.c' | wc -l

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment