KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to uncomment file content using sed but with regex (for example: [0-9]{1,5}) # one two 12 # three four 34 # five six 56 The following is working: sed -e 's/# one two 12/one two 12/g' /file However, what I would like is to use regex pattern to replace all matches without entering numbers but keep the numbers in the result.
Tags (comma-separated)
Save Edits
Cancel