Nov 3, 2003 #1 jestrada101 Technical User Joined Mar 28, 2003 Messages 332 How can I replace a single character with a blank space in its place using sed or awk? I can't seemt o find any documnenation anywhere? THANKS JE
How can I replace a single character with a blank space in its place using sed or awk? I can't seemt o find any documnenation anywhere? THANKS JE
Nov 3, 2003 1 #2 SamBones Programmer Joined Aug 8, 2002 Messages 3,186 Location US If the character is say a [tt]D[/tt], you could do this... Code: echo "ABCDEFG" | sed 's/D/ /g' Hope this helps. Upvote 0 Downvote
If the character is say a [tt]D[/tt], you could do this... Code: echo "ABCDEFG" | sed 's/D/ /g' Hope this helps.
Nov 3, 2003 #3 tshot Technical User Joined Jan 19, 2003 Messages 216 Location IN alternatively u can try "tr" . say u have file with contentsl "a b" i.e a space b. 2 fill the space ith "1" try Code: tr " " "1" < file ---------------- ur feedback is a very welcome desire Upvote 0 Downvote
alternatively u can try "tr" . say u have file with contentsl "a b" i.e a space b. 2 fill the space ith "1" try Code: tr " " "1" < file ---------------- ur feedback is a very welcome desire