Blog CN

Wednesday, April 16, 2014

Count lines of code in a linux web project

Go into your directory containing your web code:
#cd /var/www/html/myVirtualHost
Use the following command to count the lines of code in php, inc, js and css files:
#find . -type f -name '*.js' -o -name '*.css' -o -name '*.inc' -o -name '*.php'   | xargs wc -l | tail -n1
31065 total
Posted by Unknown at 8:56 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: apache, linux, PHP

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2014 (14)
    • ▼  April (14)
      • FIXED: GMail/Google Not Authenticating
      • Turn off evaluation licence warnings on VMWare ESX...
      • Launching XAMPP at OSX startup
      • TweetPHP: Display tweets on your website using PHP
      • Configuring VirtualHosts in XAMPP on Mac
      • Install vsfptd on Centos 6 using passive mode
      • Install php_mssql on Centos 6
      • Installing RHEL EPEL Repo on Centos 5.x or 6.x
      • Installing Apache2 With PHP5 And MySQL Support On ...
      • Count lines of code in a linux web project
      • Sending SMTP mail to gmail using PHP
      • Get a list of ranked client IP addresses from your...
      • How to list the files in a yum or rpm package
      • Performance tuning a CentOS LAMP web server for hi...
Simple theme. Powered by Blogger.