Having to synchronize some data among a Debian linux cluster, i settled on using csync2 for the job. Here’s a short guide to set it up. Share on Facebook
Category: Linux
Count number of lines in multiple files in several dirs
So i was asked to tell how many lines of code a project was at so far.. After some brain bashing i came up with the following, there is proberbly better ways to do it.. but it seems to work pretty nice. grep -R –include=*.php –include=*.js –include=*.css –include=*.htm* . * | wc -l This counts…