Sha256: 8590940d1baa12a3305f2d15bc93cbab3d2f16bcbb4a478f419d2b807a789ab1

Contents?: true

Size: 304 Bytes

Versions: 63

Compression:

Stored size: 304 Bytes

Contents

#!/bin/bash

input="$1";

if [ ! -n "${input}" ]
then
	echo "Usage: $0 <input>"
	exit;
fi

awk_progfile="${0%sh}awk";

if [ ! -f "${awk_progfile}" ]
then
	echo "Awk program file not found."
	exit 1;
fi

echo "$input" | tr '[:upper:]' '[:lower:]' | tr '.,:&@$%^!' ' ' | awk -f "${awk_progfile}";

exit $?;

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
trackler-2.2.1.62 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.61 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.60 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.59 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.58 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.57 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.56 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.55 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.54 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.53 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.52 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.51 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.50 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.49 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.48 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.47 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.46 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.45 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.44 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.43 tracks/bash/exercises/word-count/example.sh