#!/bin/bash # Write a listing for loop counts the characters in each command-line # argument provided. # # It will recognized quoted strings will embedded spaces and other # special characters as a quoted string. for arg in "$@" do echo "$arg `echo $arg | wc -c`" done