BASH query

dave selby dave6502 at googlemail.com
Wed Jul 11 20:23:22 UTC 2007


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




More information about the ubuntu-users mailing list