Quote:
|
Originally Posted by preethgideon
Hey thanks for the command but the string would be in the file say as the seventh field.
|
then simply add this to anbu's code
cat filename|while read line
do
echo $line|awk '{print $7}'|sed "s/\(.\{4\}\)\(..\)\(..\)\(..\)\(..\)\(..\)/\3-\2-\1 \4:\5:\6/">>filename2
done