File: conversion

package info (click to toggle)
taskd 1.1.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,580 kB
  • sloc: cpp: 13,971; python: 1,523; sh: 1,052; perl: 610; ansic: 48; makefile: 15
file content (12 lines) | stat: -rwxr-xr-x 397 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

printf "C++:     %5d\n" $(ls *.t.cpp | wc -l)
printf "Python:  %5d\n" $(head -n1 *.t | grep -a '\bpython' | wc -l)
printf "Perl:    %5d\n" $(head -n1 *.t | grep -a '\bperl\b' | wc -l)
if [ "$1" = "-v" ]; then
    echo "Perl left:    " $(grep -l '^#\! \?/usr/bin/env perl\b' *.t)
fi
echo
printf "Bug      %5d\n" $(ls {td-,bug.}*.t | wc -l)
echo
printf "Total:   %5d\n" $(ls *.t | wc -l)