On Sun, 30 Nov 2008 09:14:53 -0800
Drew Tomlinson <[EMAIL PROTECTED]> wrote:

> I'm attempting to take an ldiff file and flip first/last name order.
you can try using sh (i'm using zsh)

file data.txt has the following:

joe brown
joe brown-smith

file t.sh is coded as:

while read var; do
    f=${var% *}
    l=${var#* }
    echo $l, $f
done < $1

then you just run it as 
t.sh data.txt

In friendship,

                                      ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to