Re: parsing out adjacent text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




op 03-06-14 16:32, schreef Tim Dunphy:
What I need to figure out at this point is how to get the time and date
info on the same line as it's category. ie get

Time and date: 06/03/14 10:24:09

instead of

Time and date:
06/03/14 10:24:09
printf "Time and date: $(/bin/date +"%D %H:%M:%S")\n" solves both problems here
As it is now.

Also I'm trying to print out newlines with  echo -e "\n" but somehow that
isn't working. Tho I think I've gotten that to work in the past.

If someone could please help me fix these minor formatting issues that
would be great and appreciated.

Thanks
Tim





_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux