Is there a switch that will output the date without a linefeed? I have
a script collecting file counts, and I want a date stamp on each line
so I can send it to gnuplot, but no matter how I arrange the steps
(date, then count or count, then date), there are linefeeds/CRs that
break up the data.
For example, say I want this:
16373 Fri Jul 26 07:53:37 MDT 2002
I can get only this:
16373
Fri Jul 26 07:53:37 MDT 2002
echo has "-n" so I can put whitespace in anywhere, but both date and:
ls -lR /blah/blah/blah | wc -l >> somelog.txt
put in a LF/CR that "breaks" output. Is there a fix/escape
string/switch for this?
Thanks now,
rl