Quote:
Originally posted by Damian Ibbotson
theVariable=$(head -1 yourFile)
|
alternatively with backquotes
theVariable=`head -1 yourFile`
I've been away from shell scripting for a while and now I'm seeing more constructs like your reply than the backquotes style. Is there any reason to favour one over the other? Does the former not have to spawn a sub-shell or something?
Thanks.