BASH query

Joel Goguen jtgoguen at gmail.com
Wed Jul 11 20:31:35 UTC 2007


Try:

export val=$(cat version)

On 7/11/07, dave selby <dave6502 at googlemail.com> wrote:
> Hi all,
>
> I need to set a BASH variable val to the contents of a small line of
> ASCII in a file called 'version',
>
> ie something like ...
>
> val=$(cat version)
>
> except the above does not work !!
>
> Any suggestions
>
> Cheers
>
> Dave
>
>
>
> --
>
> Please avoid sending me Word or PowerPoint attachments.
> See http://www.gnu.org/philosophy/no-word-attachments.html
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>


-- 
Joel Goguen
http://jgoguen.net/




More information about the ubuntu-users mailing list