Search Results

Search: Posts Made By: Cloud_Ninja
3,680
Posted By Scrutinizer
Hi, try something like: sed...
Hi, try something like:
sed 's/{.*\({[^}]*}\).*}/\1/' file
To keep only the inner curly brace levels..

or try..
sed 's/{[^{]*//; s/[^}]*}\([^}]*\)$/\1/' file
To remove only the outer level.
Showing results 1 to 1 of 1

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