LineCountOfJava.sh
#!/bin/sh
lineCount=0
for fileName in `ls *.java`
do
str=`wc $fileName`
ary=(`echo $str`)
lineCount=$((lineCount + ${ary[0]}))
done
echo $lineCount
Go to list of users who liked
More than 5 years have passed since last update.
#!/bin/sh
lineCount=0
for fileName in `ls *.java`
do
str=`wc $fileName`
ary=(`echo $str`)
lineCount=$((lineCount + ${ary[0]}))
done
echo $lineCount
Register as a new user and use Qiita more conveniently
Go to list of users who liked