thanks.
ok ill be a bit more specific.
input is a huge text file with lots of sentences.
fish map.this is (Kubernetes, Mesos DC/OS, and Docker Swarm) and Azure Service Fabric are indispensable for any
production-ready microservice-based application and for any multi-container applica
go to.that is needs are moving you toward complex containerized apps, you will find it useful to seek out
additional resources for learning more about orchestrators
now i want output to be
fish map.
go to.
with your command the output is now
fish map.
production-ready microservice-based application and for any multi-container applica
go to.
additional resources for learning more about orchestrators
guys i tried all the commands you gave me but it fails if the input file is a bit long and complex(longer sentences).
i am trying for this input
A circumferential abdominoplasty is an extended abdominoplasty plus a d lift. The resulting scar runs all the way around the body, and the operation is also called a Belt Lipectomy or lower body lift. This operation is most appropriate for patients who have undergone massive weight loss.
-only Pharmacokinetic dataProtein binding
Esterases, CYP3A4, SULT2A1[1]Biological half-life
12 ± 5 hours[1]Excretion
The commands don't fail, esp. NOT for long or complex lines, they behave exactly as specified previously. This is the second time you change your mind. Will this now be the final version? Phrased like: find the second last and last word before any full stop and print them separated by a space character.
@ahfze .. cause you said firstly in example, word is at first line, then differ it. Sed not works, use grep PCRE regex instead:
$ echo 'A circumferential abdominoplasty is an extended abdominoplasty plus a d lift. The resulting scar runs all the way around the body, and the operation is also called a Belt Lipectomy or lower body lift. This operation is most appropriate for patients who have undergone massive weight loss.' >string
$ grep -Po -e '(\w+)\s+(\w+\.)' string
d lift.
body lift.
weight loss.