Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Apr 2006 13:24:50 +0200
From:      "Daniel A." <ldrada@gmail.com>
To:        "Malcolm Fitzgerald" <mfitzgerald@pacific.net.au>
Cc:        "freebsd-questions @ FreeBSD. ORG" <freebsd-questions@freebsd.org>
Subject:   Re: Shell scripting question [newby]
Message-ID:  <5ceb5d550604090424i3f3fa9b2p2077316885aac219@mail.gmail.com>
In-Reply-To: <b1b139752a28f74bc0811281a13932eb@pacific.net.au>
References:  <b1b139752a28f74bc0811281a13932eb@pacific.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/9/06, Malcolm Fitzgerald <mfitzgerald@pacific.net.au> wrote:
> I'm trying to follow the instructions at
> <http://www.daemonology.net/freebsd-upgrade-5.4-to-6.0/>;
>
> At point four it offers this shell script.
>
> cut -f 1 -d '$' /usr/local/freebsd-update/work/md5all | uniq |
>          while read X; do
>                  if [ -f $X ]; then echo $X; fi;
>          done | sort > /root/base-old
>
> Running this from root shell in konsole (bash) I get "while: Expression
> Syntax". The various hints and clues I get from the shell, the web and
> man bash haven't helped me. Would someone provide the correct syntax
> for me?
>
>
> thanks
>
> malcolm
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>
Are you sure it shouldnt be "$X" instead of "X" in the while clause?
I dont know, never tried bash scripting before :)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5ceb5d550604090424i3f3fa9b2p2077316885aac219>