Created
August 10, 2011 16:15
-
-
Save terrancesnyder/1137303 to your computer and use it in GitHub Desktop.
Sed Replace in Text with Groups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find any date and append T00:00:00Z to it | |
echo "01-01-2001,asd,01-01-2001" | sed 's/\([0-9]\+-[0-9]\+-[0-9]\+\)/\1T00:00:00Z/g' |
Author
terrancesnyder
commented
Aug 10, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment