In article <je7kji2w7b.fsf@sykes.suse.de>,
schwab@suse.de (Andreas Schwab) writes:
>rloef@interfold.com (Reed Loefgren) writes:
>
>|> Is there a switch that will output the date without a linefeed?
>
>$ date | tr -d '\n'
Or using the fact that (from the bash manual):
Bash performs the expansion by executing command and
replacing the command substitution with the standard out-
put of the command, with any trailing newlines deleted.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
d=$(date)
echo -n "$d"
--
Francis.Montagnac@sophia.inria.fr, Tel: (33) 04 92 38 79 11, Bur: E106
INRIA Sophia, 2004, rte des Lucioles, B.P.93 - 06902 Sophia Antipolis Cedex