Search code examples
pythonraspberry-piraspbianlines-of-code

python script - counting lines of code in the script


I am running a python script on my raspberry pi and I was just wondering if there is any command that I can use that counts how many lines are in my script.

Regards


Solution

  • You can use the wc command:

    wc -l yourScript.py