#!/bin/bash
## bcf == bc with formatted output -- by Eugene Reimer  http://ereimer.net  2008-11-30;
## is used by ATTRIBS;
##
## PREREQ:  bc -- from http://ereimer.net/programs/general-purpose-scripts.htm
##
## USAGE EXAMPLE:
##	echo "arithmetic-expression" | bcf "%5.3f"

bc | { read X; printf "$1" "$X"; }	##whether to use "$1" or "$1\n" -- newline would usually be nice, yet best avoided??
