Hello!
I'm new to bash scripting
it seems very powerful so I'm learning
I would like to crop all the xxx-xx from a text file
I tried
Code:
TR=" `grep -e "[0-9][0-9][0-9]-[0-9][0-9]" ~/index.html`"
but grep output the full lines
I just want xxx-xx
I also tried with sed, but I could only replace what I wanted to get...
thanks for any help
Dorian