BASH query

Matthew Carpenter matt at eisgr.com
Thu Jul 12 01:18:07 UTC 2007


On Wednesday 11 July 2007, dave selby 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

Please define specifically what "does not work" means
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070711/7f30acdd/attachment.sig>


More information about the ubuntu-users mailing list