Using the GNU date command you can choose the
date format you want - as previously suggested. The problem is that you have to transform the input date in a format recognizable by the -d option (to specify a date other than the current one). For example you may want to change the date string into "06/21/10 13:29:18" by means of shell's parameter substitution:
Code:
$ string="06:21:10:13:29:18"
$ string=${string/://}
$ string=${string/://}
$ string=${string/:/ }
$ echo $string
06/21/10 13:29:18
then use the date command at your pleasure. In alternative you can "manually" change the date format picking up the necessary substrings and print them out in some different order, e.g.
Code:
$ d="06:21:10:13:29:18"
$ echo "20${d:6:2}-${d:0:2}-${d:3:2} ${d:9:8}"
2010-06-21 13:29:18
Edit: as you can see from MTK358's example above, there are a lot of ways to scramble a string into something else!