Sha256: 222ef405ca1f58dd3a3925d3803996fa902c6364f8d71b97656e10db3ea95b26

Contents?: true

Size: 254 Bytes

Versions: 13

Compression:

Stored size: 254 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" | awk -f "${awk_progfile}";

exit $?;

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
trackler-2.2.1.10 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.9 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.8 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.7 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.6 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.5 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.4 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.3 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.2 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.1 tracks/bash/exercises/word-count/example.sh
trackler-2.2.1.0 tracks/bash/exercises/word-count/example.sh
trackler-2.2.0.6 tracks/bash/exercises/word-count/example.sh
trackler-2.2.0.5 tracks/bash/exercises/word-count/example.sh