4
rated 0 times
[
4]
[
0]
/ answers: 1 / hits: 5522
/ 2 Years ago, sat, march 26, 2022, 5:33:56
I am working with the egrep command and I need to pair with the cut (and ONLY cut) command to change a ":" into a tab. For example change:
Blahblahblah:2000
to:
Blahblahblah 2000
I currently have this, but it turns the ":" into "/t" and not tab:
egrep -e "^[0-9]" *.txt | cut -d ":" --output-delimiter="/t" -f 1- > test.txt
More From » command-line