Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
sed only keep string between brackets
Aakash Parida
Programming language:
Whatever
2021-07-25 08:24:11
0
Q:
sed only keep string between brackets
user10984851
Code:
Whatever
2021-07-12 05:47:25
echo $str | cut -d "[" -f2 | cut -d "]" -f1
0
Tags
string
between
Related
sed replace in multiple file
sed replace all occurances?
sed print a specific line
spannable string for multiple places same string
sed insert multiple lines after match
New to Communities?
Join the community