Commit 6eccca3c authored by nagayama15's avatar nagayama15

簡単なファイル解析スクリプトを作成

parent 7e3b91b0
#!/bin/zsh
g() {
NAME=$1
SIZE=$(stat -c %s $NAME)
LINES=$(wc -l $NAME | awk '{print $1+1}')
echo "name, $1, size, $SIZE, lines, $LINES"
}
f() {
for i in $@
do g $i
done
}
f example/8cc/8cc/*.c
f example/zlib/zlib/*.c
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment