The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
How to change it to the date format
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
How to change it to the date format
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
11-01-2006
anbu23
Registered User
Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
Code:
echo 20061102122042 | sed "s/\(.\{4\}\)\(..\)\(..\)\(..\)\(..\)\(..\)/\3-\2-\1 \4:\5:\6/"
anbu23
View Public Profile
Find all posts by anbu23