[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: scripting problem



On 11/26/05, Jan de Haan <j.de.haan@home.nl> wrote:
> David Koski <david@kosmosisland.com> wrote:
> > > echo -n "3 ===";echo -n ${MD5PW} | tr ' ' '\n' | while read char ; do awk \
> > > '{printf("%c",$char)}' ; done ; echo "===" user@testbox:/home/user/tmp
> >
> > Try to replace "awk" with "echo $char | awk".
> > I know that doesn't answer your question.
>
>         thanks for your answer.
>         I loose the last character now ;-)

Have you tried removing the "-n" from "echo"?  I'd guess that read is
waiting for the last carriage return, which you've inhibited.

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com



Reply to: