Re: bash scripting q



Atle Veka wrote:
In your example you are saying that $a is the function 'do_chrono', so
when you run $a, it runs the function and prints out the result. As
another poster indicated, you need to do it slightly differently:

# execute and store result in $a
a=$( do_chrono )

# print
echo $a



Yup, that too!

Thanks!
H


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: RAID for large disks
    ... The poster makes a good argument, ... response it makes no sense to go thru the trouble. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: A silly question about tar
    ... poster. ... Tyler Smit ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: Top posting
    ... > It comes down to opinion I think ... You top poster, you ... >> delete the trailing messages and try to herd an already errant thread ... To unsubscribe, ...
    (freebsd-questions)
  • Re: Proposed change for subscriptions...
    ... as a *poster* as Mike.McCarty@xxxxxxxxxxxxxxxxxxx, ... No e-mail would be sent to the alias, ... to mention people replying to list archives. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: CUPS (Sid) not printing.
    ... I purged and reinstalled cupsys as recommended by poster. ... complains that 127.0.0.1:631 is already in use. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)