Shortcuts in Science
Monday, 28 March 2016
Replacement Text Case Conversion in Regular Expression
Replacement Text Case Conversion
For example,
to change the '\2' to the uppercase,
nd=`dirname $f | perl -pe "s|(.+/)([^/]+)/?$|\1
\U
\2|g"`
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment