Search Results

Search: Posts Made By: Defunct
3,234
Posted By Defunct
Problem with Sed when repeating characters
Hi all,

I'm learning sed (and regular expressions) - My first little program is to replace 3 numbers in a row with 'XXX'

This is what I am trying:

echo '511' | sed 's/[0-9]{3}/XXX/'
Here is...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 01:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy