Created
June 9, 2011 17:15
-
-
Save anonymous/1017205 to your computer and use it in GitHub Desktop.
This file contains 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
$text =~ s{ (?<!\\\n) # not after line ending in '\' | |
^ # beginning of line | |
(\t(?>@?)[ \t]*) # capture tab, optional @, and hspace | |
(?!cd) # not before cd lines | |
(?!echo) # not before echo lines | |
(?=\S) # must be before non-blank | |
} | |
{ $1time\ }mgx; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment