I have a question related to a regular expression. I have a huge text file like
I want to get an output like this
ID DE
1.1 Transformer
1.12 Best bye
1.1.1 Iphone
so basically I want to get ID and DE
what I tried was using awk and sed but with no success. I thought I get the ID and then I get the DE and then I merge them but I still could not figure out how to do that
sed -n ID my.txt
I used -n because By default, each line of input is echoed to the standard output after all of the commands have been applied to it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…