Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Assuming the date format you have in your post is what you want, the following regex should fit your needs.
sed -E 's/(.*)\#(1[0-9]{9})(.*)/echo \1 $(date -d @\2@\1) \3/e' log.file
Be mindful of the fact this will only replace one epoch per line.
sed 's/(.*)(1[0-9]{9})(.*)/echo \1 $(date -d @\2) \3/e' log.file
sed -E 's/\#(1[0-9]{9})(.*)/echo \1 $(date -d @\1)/e' log.file