Hi,
How do I get rcalc to NOT output a newline at the end of its output. I'm using rcalc to compute a single number, and the newline is annoying.
If you can't get rcalc to do it, what is the command line voodoo required to strip it?
Thanks,
Chris
Christopher,
I would do this way by means of 'echo -n' :
···
---------------------------
#!/bin/csh -f
set a = `rcalc .....`
echo -n $a > output
----------------------------
Not sure it's what you are looking for..
BTW I hope it helps somehow...
cheers,
giulio
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of
Christopher Kings-Lynne
Sent: 25 January 2005 17:16
To: radiance-general
Subject: [Radiance-general] rcalc and newlines
Hi,
How do I get rcalc to NOT output a newline at the end of its output.
I'm using rcalc to compute a single number, and the newline is annoying.
If you can't get rcalc to do it, what is the command line voodoo
required to strip it?
Thanks,
Chris
_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general
___________________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses.
Use the rcalc -l and -o option together. For example:
echo 17 | rcalc -l -o '${$1*2}'
will print out 34 without a newline.
-Greg
···
From: Christopher Kings-Lynne <[email protected]>
Date: January 25, 2005 9:15:54 AM PST
Hi,
How do I get rcalc to NOT output a newline at the end of its output. I'm using rcalc to compute a single number, and the newline is annoying.
If you can't get rcalc to do it, what is the command line voodoo required to strip it?
Thanks,
Chris