(I know there's a similar post about this, but the solution given is not working for me as it only works for that case in particular.)
I have something like this (File1.txt):
digraph G {
1 [shape="oval" label= "Open"]
...
8->9 [style="dashed" label= "true"]
...
2 [shape="oval" label= "Close"]
8->9 [style="dashed" label= "true"]
...
}
And I want a new file that looks like this (File.txt):
digraph G {
...
1 [shape="oval" label= "Open"]
8->9 [style="dashed" label= "true"]
...
}
I tried using sort -u File1.txt >> File.txt but I don't want it sorted, I need it in the original order.
Thanks in advance
shape="oval"?