Here's my script
#! /bin/sh
SPAN1="-d 10/18/2004 17:00 -e 10/22/2004 06:00"
SPAN2="-d 10/22/2004 17:00 -e 10/25/2004 06:00"
SPAN3="-d 10/25/2004 17:00 -e 10/29/2004 06:00"
for I in $SPAN1 $SPAN2 $SPAN3
do
echo $I
done
My output looks like this
-d
10/18/2004
17:00
-e
10/22/2004
06:00
-d
10/22/2004
17:00
-e
10/25/2004
06:00
How do I get it to output like this?
-d 10/18/2004 17:00 -e 10/22/2004 06:00
-d 10/22/2004 17:00 -e 10/25/2004 06:00
-d 10/25/2004 17:00 -e 10/29/2004 06:00
Thanks, in advance!
630111
#! /bin/sh
SPAN1="-d 10/18/2004 17:00 -e 10/22/2004 06:00"
SPAN2="-d 10/22/2004 17:00 -e 10/25/2004 06:00"
SPAN3="-d 10/25/2004 17:00 -e 10/29/2004 06:00"
for I in $SPAN1 $SPAN2 $SPAN3
do
echo $I
done
My output looks like this
-d
10/18/2004
17:00
-e
10/22/2004
06:00
-d
10/22/2004
17:00
-e
10/25/2004
06:00
How do I get it to output like this?
-d 10/18/2004 17:00 -e 10/22/2004 06:00
-d 10/22/2004 17:00 -e 10/25/2004 06:00
-d 10/25/2004 17:00 -e 10/29/2004 06:00
Thanks, in advance!
630111