Search Results

Search: Posts Made By: Scrutinizer
1,977
Posted By Scrutinizer
You mean like so? sed 's/.*\(-.*-\).*/\1/' ...
You mean like so?
sed 's/.*\(-.*-\).*/\1/'

Better would be:
sed 's/.*\(-[^-]*-\).*/\1/'


--
With GNU grep:
grep -o -- '-[^-]*-'


--edit--
First answer above already provided by...
Showing results 1 to 1 of 1

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