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.82 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.81 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.80 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.79 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.78 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.77 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.76 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.75 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.74 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.73 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.72 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.71 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.70 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.69 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.68 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.67 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.66 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.65 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.64 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.63 tracks/bash/exercises/word-count/example.sh