Questions about manipulating or examining textual data using common UNIX/Linux utilities.
Questions tagged [unix-text-processing]
32 questions
-1
votes
2 answers
How can I insert a new line into a text file into every other 2 lines?
Starting with this,
example.txt
1.qwer
2.asdf
3.xzcv
4.cbvn
5.erty
Going to this,
apendedtext.txt
1.append
2.qwer
3.asdf
4.append
5.xzcv
6.cbvn
7.append

an0nhi11
- 59
- 1
- 7
-1
votes
3 answers
Bash trim some of the text
I have an output that looks like this
root@machine:path# someapp report | grep Lost
Lost Workers: 0
How can I grep only the digit at the end?
Thanks

Stat.Enthus
- 335
- 1
- 12