Hi Gurus,
I am working with a korn shell script. I should replace in a very great file the character ";" with a space.
Example:
2750;~
2734;~
2778;~
2751;~
2751;~
2752;~
what the fastest method is? Sed? Awk?
Speed is dead main point, Seen the dimensions of the files
Thanks
kshji
4
And awk.
awf -F ";" '{print}' infile
In my env the best was tr, then awk and last was sed.
are you sure this is what OP wants?
kshji
6
:). Maybe not.
awk '{ gsub(/;/," ",$0) ; print $0 }' infile
And results are 1. tr, 2. sed, 3. awk