Hi,
I have the following pattern:
echo "Full Name [TEXT]" | sed 's/.* //'
output will be [TEXT]
echo "[TEXT] Full Name" | sed 's/ .*//'
output will be [TEXT]
How to parse if [TEXT] in the middle, such as
"FULL [TEXT] Name" or "FULL Name [TEXT] 123-902-1254"
How to print out only the [TEXT] part?
Thanks!
I have the following pattern:
echo "Full Name [TEXT]" | sed 's/.* //'
output will be [TEXT]
echo "[TEXT] Full Name" | sed 's/ .*//'
output will be [TEXT]
How to parse if [TEXT] in the middle, such as
"FULL [TEXT] Name" or "FULL Name [TEXT] 123-902-1254"
How to print out only the [TEXT] part?
Thanks!