On Thu, Dec 29, 2005 at 07:59:05PM +1100, Ronny Haryanto wrote:
> perl -ne 'split;print qq/user "$_[0]" with password "$_[1]"\n/' < input.txt

Atau kalo suka awk:

Single quotes:
    awk "{printf \"user '%s' with password '%s'\n\", \$1, \$2}" < input.txt

Double quotes (ini yg benar di fetchmail):
    awk '{printf "user \"%s\" with password \"%s\"\n", $1, $2}' < input.txt

Pake sed juga bisa kalo mau :-)

Ronny

Attachment: pgpHaR7Q2mv6V.pgp
Description: PGP signature

Kirim email ke