Quantcast
Channel: How can I delete rows in the text? - Ask Ubuntu
Browsing all 2 articles
Browse latest View live

Answer by pLumo for How can I delete rows in the text?

Use grep: grep '^[0-9. ]*$' text.txt or to also exclude empty lines from the match, use grep -E '^[0-9. ]+$' text.txt This will select lines with numbers, dot and space. You can also reverse the...

View Article



How can I delete rows in the text?

Consider a text.txt file having the form 25 1 4 5 2 19 38 21 0 8 8 7 7 61 <clus scale = "125"> 1 3 2</clus> 25 3 1.63 123 56 12 38 21 123 12.3 12.1 1.5 2.67 3.77 <clus scale = "227">...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images