$ find . -name *.java |xargs wc -l
But this counts blank lines and comments as well! Better ideas, anyone?
$ find . -name *.java |xargs wc -l
/dev/sda3 /media/cdrive ntfs-3g defaults
# fdisk -l Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x01238b30 Device Boot Start End Blocks Id System /dev/sda1 1 26 208813+ 83 Linux /dev/sda3 29447 38913 76043677+ 7 HPFS/NTFS /dev/sda4 27 22978 184361940 f W95 Ext'd (LBA) /dev/sda5 27 20914 167782828+ 83 Linux /dev/sda6 20915 22873 15735636 83 Linux /dev/sda7 22874 22978 843381 82 Linux swap / Solaris
# <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # / was on /dev/sda6 during installation UUID=295dd122-7bd3-49e3-8e94-e192bd48e741 / ext4 errors=remount-ro 0 1 # /boot was on /dev/sda1 during installation UUID=31640fe8-bd0a-409f-b09e-f340e31b87ce /boot ext4 defaults 0 2 # /home was on /dev/sda5 during installation UUID=88e313d9-2537-466d-9856-4ae03bf75f81 /home ext4 defaults 0 2 # /media/cdrive was on /dev/sda3 during installation UUID=286841F96841C672 /media/cdrive ntfs defaults,umask=007,gid=46 0 0 # swap was on /dev/sda7 during installation UUID=872f1854-af38-48ee-807d-b46ec1db6a75 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
bin/scilab: line 132: 8184 Segmentation fault "$SCILABBIN" $*
$ bin/scilab -nogui
#!/usr/bin/bash
svnadmin create svnrepos #creates a directory called svnrepos
#in the current directory, and
#creates the config files
printf "[general]\nanon-access = none\nauth-access = write\npassword-db = passwd\n" > svnrepos/conf/svnserve.conf
printf "[users]\n" > svnrepos/conf/passwd
while [ 1 -gt 0 ]
do
printf "Username: " #create username,password for
read user #whom access is required
if [ $user == "q" ] #press "q" to stop accepting username, passwords
then
break
fi
printf "Password: "
read pass
printf "$user"" = ""$pass\n" >> svnrepos/conf/passwd
done
svnserve -r /users/proj/prashanth.kamle/svnrepos -d
#!/bin/bash pid=`ps -A|grep svnserve| cut -d" " -f1` kill $pid
#!/bin/bashPass the folder containing your pics as an argument to the script, or just put the script in your folder and double-click :)
pics=`ls $1 | grep JPG`
for pic in $pics
do
echo "Converting $1$pic ..."
convert -size 1600x1200 $1$pic -resize 1600x1200 $1$pic
done