why would you need to change the format, you could rather change the / with - and preserve the current format for date with just half line of code ?
hope this is not a Homework. :P
Quote:
sed 's/\//-/g' test1.txt | xargs -0 date '+%F %T' -d
|
incorrect use of xargs for sure. So what error did you got ?